共用方式為


ServiceHealthBehavior.GetServiceHealthSections(ServiceHostBase) 方法

定義

取得定義於 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 物件集合。

例外狀況

serviceHostnull

適用於