Condividi tramite


SpecializedSyncContext Struct

Definition

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.