public static void main(Args args) { InteropPermission permission; str userName; str userDomain; ; permission = new InteropPermission(InteropKind::ClrInterop); permission.assert(); userDomain = System.Environment::get_UserDomainName(); userName = System.Environment::get_UserName(); info(strFmt(@"%1\%2", userDomain, userName)); }
The code must be executed from the server tier.