AsyncOperationManager.SynchronizationContext Property


Gets or sets the synchronization context for the asynchronous operation.

Namespace:   System.ComponentModel
Assembly:  System (in System.dll)

public static SynchronizationContext SynchronizationContext {
	[PermissionSetAttribute(SecurityAction.LinkDemand, Name = "FullTrust")]

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.


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

Universal Windows Platform
Available since 10
.NET Framework
Available since 2.0
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top