ClientBase<TChannel>.ChannelBase<T>.ICommunicationObject.State Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets the current state of the communication-oriented object.

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

Syntax

'Declaration
Private ReadOnly Property State As CommunicationState
    Implements ICommunicationObject.State
CommunicationState ICommunicationObject.State { get; }

Property Value

Type: System.ServiceModel.CommunicationState
The value of the CommunicationState of the object.

Implements

ICommunicationObject.State

Remarks

The main communication states available to an ICommunicationObject are:

There are also transitory states that such an object can occupy when transitioning between the first three main states:

This CommunicationState defines the states that are valid for all communication-oriented objects in the system, including channels, listeners, the channel and listener factories, and the ServiceHost class.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Windows Phone OS 7.0

Platforms

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