RuntimeHelpers.PrepareContractedDelegate(Delegate) Method

Definition

Provides a way for applications to dynamically prepare AppDomain event delegates.

public:
 static void PrepareContractedDelegate(Delegate ^ d);
[System.Security.SecurityCritical]
public static void PrepareContractedDelegate(Delegate d);
public static void PrepareContractedDelegate(Delegate d);
[<System.Security.SecurityCritical>]
static member PrepareContractedDelegate : Delegate -> unit
static member PrepareContractedDelegate : Delegate -> unit
Public Shared Sub PrepareContractedDelegate (d As Delegate)

Parameters

d
Delegate

The event delegate to prepare.

Attributes

Remarks

AppDomain event delegates such as DomainUnload, ProcessExit, and UnhandledException are not automatically prepared at startup. You can use the following methods to prepare them:

For more information, see the article Keep Your Code Running with the Reliability Features of the .NET Framework in the MSDN Magazine.

Applies to