A declarative role-based security demand for the current principal to be a member of the roles Managers OR Developers : Permissions « Security « C# / CSharp Tutorial
using System;
using System.Security.Permissions;
class MainClass
{
[PrincipalPermission(SecurityAction.Demand, Role = @"MACHINE\Managers")]
[PrincipalPermission(SecurityAction.Demand, Role = @"MACHINE\Developers")]
publicstaticvoid MyMethod()
{
}
}