ServiceHostBase.LoadConfigurationSection(ServiceElement) 方法

定義

從裝載之服務的組態檔載入服務項目。Loads the service element from the configuration file of the hosted service.

protected:
 void LoadConfigurationSection(System::ServiceModel::Configuration::ServiceElement ^ serviceSection);
protected void LoadConfigurationSection (System.ServiceModel.Configuration.ServiceElement serviceSection);
member this.LoadConfigurationSection : System.ServiceModel.Configuration.ServiceElement -> unit
Protected Sub LoadConfigurationSection (serviceSection As ServiceElement)

參數

serviceSection
ServiceElement

要從組態載入的 ServiceElementThe ServiceElement to be loaded from configuration.

例外狀況

serviceSectionnullserviceSection is null.

裝載之服務的描述為 nullThe description of the service hosted is null.

適用於