Udostępnij przez


RuntimeHelpers.PrepareContractedDelegate(Delegate) Metoda

Definicja

Przestroga

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

Umożliwia aplikacjom dynamiczne przygotowywanie AppDomain delegatów zdarzeń.

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)

Parametry

d
Delegate

Delegat zdarzenia do przygotowania.

Atrybuty

Uwagi

AppDomain delegatów zdarzeń, takich jak DomainUnload, ProcessExiti UnhandledException nie są automatycznie przygotowane podczas uruchamiania. Aby je przygotować, możesz użyć następujących metod:

Aby uzyskać więcej informacji, zobacz artykuł Keep Your Code Running with the Reliability Features of the .NET Framework in the MSDN Magazine (Zachowaj działanie kodu przy użyciu funkcji niezawodności .NET Framework w magazynie MSDN).

Dotyczy