PrincipalPolicy.Intersect/Union : Permissions : Security C# Examples


C# Examples » Security » Permissions »

 

PrincipalPolicy.Intersect/Union









    
using  System;
using  System.Security.Permissions;

class  MainClass
{
        public  static  void  MyMethod()  
        {  
                PrincipalPermission  perm1  =  new  PrincipalPermission(null,  @"MACHINE\Managers");

                PrincipalPermission  perm2  =  new  PrincipalPermission(null,  @"MACHINE\Developers");

                //  Make  the  demand.
                perm1.Union(perm2).Demand();
        }

}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Security
» Permissions