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 值。

備註

可用的 ICommunicationObject 主要通訊狀態如下:

在下面三個主要狀態間轉換時,這類物件也可能處於某些過渡狀態:

這會 CommunicationState 定義系統中所有通訊導向物件的有效狀態,包括通道、接聽程式、通道和接聽程式處理站,以及 ServiceHost 類別。

適用於