RuntimeHelpers.PrepareContractedDelegate(Delegate) Metod

Definition

Varning

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

Ger ett sätt för program att dynamiskt förbereda AppDomain händelsedelegater.

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)

Parametrar

d
Delegate

Händelsedelegaten som ska förberedas.

Attribut

Kommentarer

AppDomain händelsedelegater som DomainUnload, ProcessExitoch UnhandledException förbereds inte automatiskt vid start. Du kan använda följande metoder för att förbereda dem:

Mer information finns i artikeln Keep Your Code Running with the Reliability Features of the .NET Framework i MSDN Magazine.

Gäller för