System.Threading.AsyncFlowControl Structure

Provides the functionality to restore the migration, or flow, of the execution context between threads.

See Also: AsyncFlowControl Members


public struct AsyncFlowControl : IDisposable


An execution context contains all execution-related information for a logical thread. The flow of the execution context to other threads can be prevented by using the ExecutionContext.SuppressFlow method, which returns an System.Threading.AsyncFlowControl structure. The AsyncFlowControl.Undo method of the returned System.Threading.AsyncFlowControl structure can be used to undo the flow suppression. The System.Threading.AsyncFlowControl structure must be used on the same thread on which it was created.


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