System.Security.CodeAccessPermission.RevertPermitOnly Method

Causes any previous CodeAccessPermission.PermitOnly for the current frame to be removed and no longer in effect.

Syntax

public static void RevertPermitOnly ()

Remarks

If there is no 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