AsyncOperationManager.SynchronizationContext AsyncOperationManager.SynchronizationContext AsyncOperationManager.SynchronizationContext AsyncOperationManager.SynchronizationContext Property

Definition

Gets or sets the synchronization context for the asynchronous operation.

public:
 static property System::Threading::SynchronizationContext ^ SynchronizationContext { System::Threading::SynchronizationContext ^ get(); void set(System::Threading::SynchronizationContext ^ value); };
public static System.Threading.SynchronizationContext SynchronizationContext { get; set; }
member this.SynchronizationContext : System.Threading.SynchronizationContext with get, set
Public Shared Property SynchronizationContext As SynchronizationContext

Property Value

The synchronization context for the asynchronous operation.

Remarks

The default implementation is the free-threaded implementation.

A thread should set the SynchronizationContext property to null to release the free-threaded factory when it is done, or else its factory will never be disposed.

Security

NamedPermissionSet
for setting the synchronization context. Demand value: LinkDemand. Associated state:

Applies to