ServiceHealthBehavior.GetServiceHealthSections(ServiceHostBase) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得定義於 ServiceHealthBehavior 中的 ServiceHealthSection 物件集合。
protected:
virtual System::ServiceModel::Description::ServiceHealthSectionCollection ^ GetServiceHealthSections(System::ServiceModel::ServiceHostBase ^ serviceHost);
protected virtual System.ServiceModel.Description.ServiceHealthSectionCollection GetServiceHealthSections (System.ServiceModel.ServiceHostBase serviceHost);
abstract member GetServiceHealthSections : System.ServiceModel.ServiceHostBase -> System.ServiceModel.Description.ServiceHealthSectionCollection
override this.GetServiceHealthSections : System.ServiceModel.ServiceHostBase -> System.ServiceModel.Description.ServiceHealthSectionCollection
Protected Overridable Function GetServiceHealthSections (serviceHost As ServiceHostBase) As ServiceHealthSectionCollection
參數
- serviceHost
- ServiceHostBase
服務主機的執行個體,其中包含 WCF 服務並已啟用 ServiceHealthBehavior。
傳回
定義於 ServiceHealthBehavior 中的 ServiceHealthSection 物件集合。
例外狀況
serviceHost
為 null
。