Export (0) Print
Expand All

RuntimeHelpers.PrepareContractedDelegate Method

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

Namespace:  System.Runtime.CompilerServices
Assembly:  mscorlib (in mscorlib.dll)

public static void PrepareContractedDelegate(
	Delegate d
)

Parameters

d
Type: System.Delegate

The event delegate to prepare.

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.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4

  • SecurityCriticalAttribute 

    requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.

Show:
© 2015 Microsoft