CodeAccessPermission.RevertPermitOnly Method

Definition

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

public:
 static void RevertPermitOnly();
[System.Diagnostics.Conditional("FEATURE_MONO_CAS")]
public static void RevertPermitOnly ();
static member RevertPermitOnly : unit -> unit
Public Shared Sub RevertPermitOnly ()
Attributes

Exceptions

There is no previous PermitOnly() for the current frame.

Remarks

If there is no PermitOnly for the current frame, an ExecutionEngineException is thrown.

Applies to