System.Threading.AsyncFlowControl Structure

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

See Also: AsyncFlowControl Members

Syntax

public struct AsyncFlowControl : IDisposable

Remarks

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.

Requirements

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