State Property
Collapse the table of content
Expand the table of content

ICommunicationObject.State Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets the current state of the communication-oriented object.

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

CommunicationState State { get; }

Property Value

Type: System.ServiceModel.CommunicationState
The 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, and the channel and listener factories class.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft