System.Threading.HostExecutionContextManager.Capture Method

Captures the host execution context from the current thread.

Syntax

public virtual HostExecutionContext Capture ()

Returns

A System.Threading.HostExecutionContext object representing the host execution context of the current thread.

Remarks

The System.Threading.HostExecutionContext is created using a safe handle containing the IUnknown pointer for the host executing the current thread.

Requirements

Namespace: System.Threading
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0