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
35.4.9.A declarative role-based security demand for the current principal to be a member of the roles Managers OR Developers
using System; using System.Security.Permissions;
class MainClass
{
[PrincipalPermission(SecurityAction.Demand, Role = @"MACHINE\Managers")]
[PrincipalPermission(SecurityAction.Demand, Role = @"MACHINE\Developers")] public static void MyMethod()
{
}
}