Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ExecutionContext::Capture Method ()

 

Captures the execution context from the current thread.

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

public:
static ExecutionContext^ Capture()

Return Value

Type: System.Threading::ExecutionContext^

An ExecutionContext object representing the execution context for the current thread.

The captured execution context can be used as the executionContext parameter for the Run method.

Universal Windows Platform
Available since 10
.NET Framework
Available since 2.0
Return to top
Show:
© 2017 Microsoft