Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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)

public:
[SecurityCriticalAttribute]
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:
© 2017 Microsoft