AsyncOperationManager::SynchronizationContext Property
.NET Framework (current version)
Gets or sets the synchronization context for the asynchronous operation.
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
Available since 10
.NET Framework
Available since 2.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Show: