new PrincipalPermission() : PrincipalPermission « System.Security.Permissions « C# / C Sharp by API






new PrincipalPermission()

  

using System;
using System.Security.Permissions;

class MainClass
{
    public static void MyMethod() 
    { 
 
        PrincipalPermission perm = new PrincipalPermission(@"MACHINE\Joe", @"MACHINE\Managers");
            
        perm.Demand();
    }
}

   
    
  








Related examples in the same category

1.mark PrincipalPermission