Share via


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の信頼性機能を使用してコードを実行し続ける」の記事を参照してください。

適用対象