Collapse the table of content
Expand the table of content
Expand Minimize

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft