ICommunicationObject::State Property
Gets the current state of the communication-oriented object.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Property Value
Type: System.ServiceModel::CommunicationStateThe value of the CommunicationState of the object.
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.
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0