SynchronizationContext Property
Collapse the table of content
Expand the table of content

InstanceContext.SynchronizationContext Property

Gets or sets the context used for thread synchronization with the current instance context.

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

public SynchronizationContext SynchronizationContext { get; set; }

Property Value

Type: System.Threading.SynchronizationContext
The SynchronizationContext used for thread synchronization with the current instance context.

ExceptionCondition
InvalidOperationException

The communication object is opened or closing and cannot be modified in these states.

CommunicationObjectAbortedException

The communication object has been aborted and cannot be modified in these states.

ObjectDisposedException

The communication object has been closed already and cannot be modified in these states.

CommunicationObjectFaultedException

The communication object is faulted and cannot be modified in these states.

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2016 Microsoft