RuntimeHelpers.PrepareContractedDelegate(Delegate) Metoda

Definicja

Uwaga

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

Zapewnia aplikacjom możliwość dynamicznego przygotowywania 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 delegaty zdarzeń, takie 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 (Zapewnianie działania kodu przy użyciu funkcji niezawodności programu .NET Framework w magazynie MSDN).

Dotyczy