HostExecutionContextManager::Capture Method ()

 

Captures the host execution context from the current thread.

Namespace:   System.Threading
Assembly:  mscorlib (in mscorlib.dll)

public:
virtual HostExecutionContext^ Capture()

Return Value

Type: System.Threading::HostExecutionContext^

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

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

.NET Framework
Available since 2.0
Return to top
Show: