AsyncFlowControl Struct
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides the functionality to restore the migration, or flow, of the execution context between threads.
public value class AsyncFlowControl : IDisposable
public value class AsyncFlowControl : IDisposable, IEquatable<System::Threading::AsyncFlowControl>
public struct AsyncFlowControl : IDisposable
public struct AsyncFlowControl : IDisposable, IEquatable<System.Threading.AsyncFlowControl>
type AsyncFlowControl = struct
interface IDisposable
Public Structure AsyncFlowControl
Implements IDisposable
Public Structure AsyncFlowControl
Implements IDisposable, IEquatable(Of AsyncFlowControl)
- Inheritance
- Implements
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.
Dispose() |
Releases all resources used by the current instance of the AsyncFlowControl class. |
Equals(Async |
Determines whether the specified AsyncFlowControl structure is equal to the current AsyncFlowControl structure. |
Equals(Object) |
Determines whether the specified object is equal to the current AsyncFlowControl structure. |
Get |
Gets a hash code for the current AsyncFlowControl structure. |
Undo() |
Restores the flow of the execution context between threads. |
Equality(Async |
Compares two AsyncFlowControl structures to determine whether they are equal. |
Inequality(Async |
Compares two AsyncFlowControl structures to determine whether they are not equal. |
IDisposable. |
This API supports the product infrastructure and is not intended to be used directly from your code. Releases all resources used by the AsyncFlowControl. |
Product | Versions |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: