Edit

SecurityManager.SavePolicyLevel(PolicyLevel) Method

Definition

Caution

This API is now deprecated.

Saves a modified security policy level loaded with LoadPolicyLevelFromFile(String, PolicyLevelType).

public:
 static void SavePolicyLevel(System::Security::Policy::PolicyLevel ^ level);
[System.Obsolete]
public static void SavePolicyLevel(System.Security.Policy.PolicyLevel level);
public static void SavePolicyLevel(System.Security.Policy.PolicyLevel level);
[<System.Obsolete>]
static member SavePolicyLevel : System.Security.Policy.PolicyLevel -> unit
static member SavePolicyLevel : System.Security.Policy.PolicyLevel -> unit
Public Shared Sub SavePolicyLevel (level As PolicyLevel)

Parameters

level
PolicyLevel

The policy level object to be saved.

Attributes

Exceptions

The code that calls this method does not have ControlPolicy.

This method uses code access security (CAS) policy, which is obsolete in the .NET Framework 4. To enable CAS policy for compatibility with earlier versions of the .NET Framework, use the <legacyCasPolicy> element.

Remarks

The PolicyLevel will be saved to the same location from which it loaded.

Applies to