System.Security.CodeAccessPermission.RevertAll Method

Causes all previous overrides for the current frame to be removed and no longer in effect.

Syntax

public static void RevertAll ()

Remarks

If there are no overrides (CodeAccessPermission.Assert, CodeAccessPermission.Deny, or CodeAccessPermission.PermitOnly) for the current frame, an ExecutionEngineException is thrown.

Requirements

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