System.Security.SecurityManager.SavePolicy Method

Saves the modified security policy state.

Syntax

[System.Obsolete]
public static void SavePolicy ()

Remarks

This method saves the policy as exposed by SecurityManager.PolicyHierarchy, System.Security.Policy.PolicyLevel, and other classes that represent configuration of the security policy. Unless this method is called, changes made to the policy objects will not be saved and will not affect subsequent application runs.

Requirements

Namespace: System.Security
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0