new PrincipalPermission(null, @"MACHINE\Managers") : PrincipalPermission « Security « C# / C Sharp






new PrincipalPermission(null, @"MACHINE\Managers")

 
using System;
using System.Security.Permissions;

class MainClass {

    public static void Method1() {
        PrincipalPermission perm = new PrincipalPermission(@"MACHINE\Tester", null);
        perm.Demand();
    }


}

 








Related examples in the same category

1.Union two PrincipalPermissions
2.Demand PrincipalPermission