JoinableTaskContext.RevertRelevance Structure
A structure that clears the CallContext and SynchronizationContext async/thread values and restores those values when this structure is disposed.
Namespace: Microsoft.VisualStudio.Threading
Assembly: Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)
Syntax
'Declaration
Public Structure RevertRelevance _
Implements IDisposable
public struct RevertRelevance : IDisposable
public value class RevertRelevance : IDisposable
[<Sealed>]
type RevertRelevance =
struct
interface IDisposable
end
JScript supports the use of structures, but not the declaration of new ones.
The JoinableTaskContext.RevertRelevance type exposes the following members.
Methods
Name | Description | |
---|---|---|
Dispose | Reverts the async local and thread static values to their original values. | |
Equals | Indicates whether this instance and a specified object are equal. (Inherited from ValueType.) | |
GetHashCode | Returns the hash code for this instance. (Inherited from ValueType.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
ToString | Returns the fully qualified type name of this instance. (Inherited from ValueType.) |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.