using System;using System.Security.Permissions;class MainClass { public static void Method1() { PrincipalPermission perm = new PrincipalPermission(@"MACHINE\Tester", null); perm.Demand(); }}