RuntimeHelpers.TryCode RuntimeHelpers.TryCode RuntimeHelpers.TryCode RuntimeHelpers.TryCode Delegate

Definition

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

public: delegate void RuntimeHelpers::TryCode(System::Object ^ userData);
[System.Security.SecurityCritical]
public delegate void RuntimeHelpers.TryCode(object userData);
type RuntimeHelpers.TryCode = delegate of obj -> unit
Public Delegate Sub RuntimeHelpers.TryCode(userData As Object)

Parameters

userData
Object Object Object Object

Data to pass to the delegate.

Inheritance
RuntimeHelpers.TryCodeRuntimeHelpers.TryCodeRuntimeHelpers.TryCodeRuntimeHelpers.TryCode
Attributes

Remarks

Use the RuntimeHelpers.TryCode delegate with the ExecuteCodeWithGuaranteedCleanup method.

Extension Methods

GetMethodInfo(Delegate) GetMethodInfo(Delegate) GetMethodInfo(Delegate) GetMethodInfo(Delegate)

Gets an object that represents the method represented by the specified delegate.

Applies to