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::TryCode Delegate

 

Represents a delegate to code that should be run in a try block..

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

public delegate void TryCode(
	Object^ userData
)

Parameters

userData
Type: System::Object^

Data to pass to the delegate.

Use the RuntimeHelpers::TryCode delegate with the ExecuteCodeWithGuaranteedCleanup method.

.NET Framework
Available since 2.0
Return to top
Show:
© 2017 Microsoft