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