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(),且不再有作用。

C#
[System.Obsolete]
public static void RevertDeny ();
C#
public static void RevertDeny ();
C#
[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 ();
屬性

例外狀況

目前畫面格沒有先前的 Deny()

備註

如果目前框架沒有 DenyExecutionEngineException 則會擲回 。

適用於

產品 版本 (已淘汰)
.NET Framework 1.1, 2.0, 3.0, 3.5 (4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1)
Windows Desktop (3.0, 3.1, 5, 6, 7, 8, 9)