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.

DispatchRuntime::SynchronizationContext Property

 

Gets or sets the synchronization context that is used to invoke the service operations.

Namespace:   System.ServiceModel.Dispatcher
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public:
property SynchronizationContext^ SynchronizationContext {
	SynchronizationContext^ get();
	void set(SynchronizationContext^ value);
}

Property Value

Type: System.Threading::SynchronizationContext^

The SynchronizationContext object used to determine on which thread the service operation is invoked.

The return value can be null. If this value is not null, then this synchronization context is used to invoke the service operations on the correct thread.

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft