CheckExecutionRights, SavePolicy : SecurityManager « Security « C# / C Sharp






CheckExecutionRights, SavePolicy

 

using System.Security;

class MainClass {
    public static void Main() {
        SecurityManager.CheckExecutionRights = true;
        SecurityManager.SavePolicy();
        SecurityManager.CheckExecutionRights = false;

        SecurityManager.SavePolicy();
    }
}

 








Related examples in the same category

1.PolicyHierarchy