AsyncFlowControl Structure
TOC
Collapse the table of content
Expand the table of content

AsyncFlowControl Structure

 

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

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

public struct AsyncFlowControl : IDisposable

NameDescription
System_CAPS_pubmethodDispose()

Releases all resources used by the current instance of the AsyncFlowControl class.

System_CAPS_pubmethodEquals(AsyncFlowControl)

Determines whether the specified AsyncFlowControl structure is equal to the current AsyncFlowControl structure.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current AsyncFlowControl structure. (Overrides ValueType.Equals(Object).)

System_CAPS_pubmethodGetHashCode()

Gets a hash code for the current AsyncFlowControl structure.(Overrides ValueType.GetHashCode().)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns the fully qualified type name of this instance.(Inherited from ValueType.)

System_CAPS_pubmethodUndo()

Restores the flow of the execution context between threads.

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticEquality(AsyncFlowControl, AsyncFlowControl)

Compares two AsyncFlowControl structures to determine whether they are equal.

System_CAPS_puboperatorSystem_CAPS_staticInequality(AsyncFlowControl, AsyncFlowControl)

Compares two AsyncFlowControl structures to determine whether they are not equal.

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 AsyncFlowControl structure. The Undo method of the returned AsyncFlowControl structure can be used to undo the flow suppression. The AsyncFlowControl structure must be used on the same thread on which it was created.

.NET Framework
Available since 2.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft