RuntimeHelpers.PrepareContractedDelegate Method (Delegate)

.NET Framework (current version)
 

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

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

[SecurityCriticalAttribute]
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.

SecurityCriticalAttribute

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

.NET Framework
Available since 4.0
Return to top
Show: