RuntimeHelpers.PrepareContractedDelegate(Delegate) Methode

Definition

Achtung

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

Bietet Anwendungen die Möglichkeit, AppDomain-Ereignisdelegaten dynamisch vorzubereiten.

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)

Parameter

d
Delegate

Der vorzubereitende Ereignisdelegat.

Attribute

Hinweise

AppDomain Ereignisdelegaten wie DomainUnload, ProcessExitund UnhandledException werden beim Start nicht automatisch vorbereitet. Sie können die folgenden Methoden verwenden, um sie vorzubereiten:

Weitere Informationen finden Sie im Artikel Keep Your Code Running with the Reliability Features of the .NET Framework im MSDN Magazine.

Gilt für: