CodeAccessPermission.RevertDeny 方法

定义

注意

现已弃用此 API。

注意

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.

导致删除当前帧之前 Deny() 的任何帧,并且不再生效。

public:
 static void RevertDeny();
[System.Obsolete]
public static void RevertDeny();
public static void RevertDeny();
[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();
[<System.Obsolete>]
static member RevertDeny : unit -> unit
static member RevertDeny : unit -> unit
[<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.")>]
static member RevertDeny : unit -> unit
Public Shared Sub RevertDeny ()
属性

例外

当前帧没有以前的 Deny() 版本。

注解

如果当前帧不存在 Deny ,则会引发一个 ExecutionEngineException

适用于