SpecializedSyncContext Struct
Definition
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.
A structure that applies and reverts changes to the SynchronizationContext.
public value class SpecializedSyncContext : IDisposable
public struct SpecializedSyncContext : IDisposable
[System.Runtime.CompilerServices.IsReadOnly]
public readonly struct SpecializedSyncContext : IDisposable
type SpecializedSyncContext = struct
interface IDisposable
[<System.Runtime.CompilerServices.IsReadOnly>]
type SpecializedSyncContext = struct
interface IDisposable
Public Structure SpecializedSyncContext
Implements IDisposable
- Inheritance
-
SpecializedSyncContext
- Attributes
- Implements
Methods
Apply(SynchronizationContext, Boolean) |
Applies the specified SynchronizationContext to the caller's context. |
Dispose() |
Reverts the SynchronizationContext to its previous instance. |
Applies to
Thread Safety
This type is thread-safe for all members.