InstanceContext.SynchronizationContext Property
Microsoft Silverlight will reach end of support after October 2021. Learn more.
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)
Syntax
'Declaration
Public Property SynchronizationContext As SynchronizationContext
public SynchronizationContext SynchronizationContext { get; set; }
Property Value
Type: System.Threading.SynchronizationContext
The SynchronizationContext used for thread synchronization with the current instance context.
Exceptions
Exception | Condition |
---|---|
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. |
Version Information
Silverlight
Supported in: 5, 4, 3
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.