ICommunicationObject.State 属性

定义

获取面向通信的对象的当前状态。

public:
 property System::ServiceModel::CommunicationState State { System::ServiceModel::CommunicationState get(); };
public System.ServiceModel.CommunicationState State { get; }
member this.State : System.ServiceModel.CommunicationState
Public ReadOnly Property State As CommunicationState

属性值

CommunicationState

对象的 CommunicationState 的值。

注解

可用的 ICommunicationObject 主要通信状态包括:

当在前三个主状态之间转换时,这类对象还可能处于下列两个暂时状态下:

CommunicationState 定义了对系统中所有面向通信的对象有效的状态,包括通道、侦听器、通道和侦听器工厂以及 ServiceHost 类。

适用于