語言

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

適用於