CodeAccessPermission.RevertDeny 方法

定义

警告

此 API 现已过时。

导致当前帧以前所有的 Deny() 被删除且不再有效。Causes any previous Deny() for the current frame to be removed and no longer in effect.

public:
 static void RevertDeny();
[System.Obsolete]
[System.Diagnostics.Conditional("FEATURE_MONO_CAS")]
[System.Obsolete("Deny is obsolete and will be removed in a future release of the .NET Framework. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.")]
public static void RevertDeny ();
static member RevertDeny : unit -> unit
Public Shared Sub RevertDeny ()
属性

异常

当前帧不再具有以前的 Deny()There is no previous Deny() for the current frame.

注解

如果当前帧没有 Deny,则会引发 ExecutionEngineExceptionIf there is no Deny for the current frame, an ExecutionEngineException is thrown.

适用于