RuntimeHelpers.TryCode Delegate

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: