System.Security.Policy.PolicyLevel.Recover Method

Replaces the configuration file for this System.Security.Policy.PolicyLevel with the last backup (reflecting the state of policy prior to the last time it was saved) and returns it to the state of the last save.

Syntax

public void Recover ()

Remarks

This method does not make modifications to the current System.Security.Policy.PolicyLevel. Instead, it updates the System.Security.Policy.PolicyLevel object's file and the System.Security.Policy.PolicyLevel that the security system uses to evaluate policy.

This method is used by the caspol -recover option (see [<topic://cpgrfcodeaccesssecuritypolicyutilitycaspolexe>]).

Requirements

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