Export (0) Print
Expand All

AsyncOperationManager.SynchronizationContext Property

Gets or sets the synchronization context for the asynchronous operation.

Namespace:  System.ComponentModel
Assemblies:   System (in System.dll)
  System.ComponentModel.EventBasedAsync (in System.ComponentModel.EventBasedAsync.dll)

public static SynchronizationContext SynchronizationContext { get; set; }

Property Value

Type: System.Threading.SynchronizationContext
The synchronization context for the asynchronous operation.

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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8

Show:
© 2015 Microsoft