ExecutionContext::CreateCopy Method ()
.NET Framework (current version)
Creates a copy of the current execution context.
Assembly: mscorlib (in mscorlib.dll)
Return Value
Type: System.Threading::ExecutionContext^An ExecutionContext object representing the current execution context.
| Exception | Condition |
|---|---|
| InvalidOperationException | This context cannot be copied because it is used. Only newly captured contexts can be copied. |
This method is useful for propagating an execution context from one thread to another.
.NET Framework
Available since 2.0
Available since 2.0
Show: