System.Threading.HostExecutionContext.CreateCopy Method

Creates a copy of the current host execution context.

Syntax

public virtual HostExecutionContext CreateCopy ()

Returns

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

Remarks

The copy can be used as the parameter to a HostExecutionContextManager.SetHostExecutionContext(HostExecutionContext) method call.

Requirements

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