mark PrincipalPermission : PrincipalPermission « System.Security.Permissions « C# / C Sharp by API






mark PrincipalPermission

  

using System;
using System.Security.Permissions;

class MainClass
{
    [PrincipalPermission(SecurityAction.Demand, Name = @"MACHINE\Joe", Role = @"MACHINE\Managers")]
    public static void MyMethod()
    {
    }
}

   
    
  








Related examples in the same category

1.new PrincipalPermission()