This documentation is archived and is not being maintained.

CodeAccessPermission.RevertPermitOnly Method

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

[Visual Basic]
Public Shared Sub RevertPermitOnly()
[C#]
public static void RevertPermitOnly();
[C++]
public: static void RevertPermitOnly();
[JScript]
public static function RevertPermitOnly();

Exceptions

Exception Type Condition
ExecutionEngineException There is no previous PermitOnly for the current frame.

Remarks

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

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

CodeAccessPermission Class | CodeAccessPermission Members | System.Security Namespace

Show: