RuntimeHelpers.PrepareContractedDelegate(Delegate) 方法

定义

注意

The Constrained Execution Region (CER) feature is not supported.

提供应用程序用来动态准备 AppDomain 事件委托的方法。

public:
 static void PrepareContractedDelegate(Delegate ^ d);
[System.Obsolete("The Constrained Execution Region (CER) feature is not supported.", DiagnosticId="SYSLIB0004", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public static void PrepareContractedDelegate (Delegate d);
public static void PrepareContractedDelegate (Delegate d);
[System.Security.SecurityCritical]
public static void PrepareContractedDelegate (Delegate d);
[<System.Obsolete("The Constrained Execution Region (CER) feature is not supported.", DiagnosticId="SYSLIB0004", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
static member PrepareContractedDelegate : Delegate -> unit
static member PrepareContractedDelegate : Delegate -> unit
[<System.Security.SecurityCritical>]
static member PrepareContractedDelegate : Delegate -> unit
Public Shared Sub PrepareContractedDelegate (d As Delegate)

参数

d
Delegate

要准备的事件委托。

属性

注解

AppDomain 事件委托(如 DomainUnloadProcessExitUnhandledException )不会在启动时自动准备。 可以使用以下方法来准备它们:

有关详细信息,请参阅 MSDN 杂志中的文章使用.NET Framework的可靠性功能使代码保持运行

适用于