Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

AsyncOperationManager::SynchronizationContext Property

 

Gets or sets the synchronization context for the asynchronous operation.

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

public:
property SynchronizationContext^ SynchronizationContext {
	static SynchronizationContext^ get();
	[PermissionSetAttribute(SecurityAction::LinkDemand, Name = "FullTrust")]
	static void set(SynchronizationContext^ value);
}

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.

NamedPermissionSet

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

Universal Windows Platform
Available since 10
.NET Framework
Available since 2.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show:
© 2017 Microsoft