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:
-
Created Opened
-
Closed
-
Faulted
There are also transitory states that such an object can occupy when transitioning between the first three main states:
-
Opening
-
Closing
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.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.