共用方式為


ServiceHostFactoryBase.CreateServiceHost(String, Uri[]) 方法

定義

在衍生類別中覆寫時,使用自訂的初始化資料建立含有指定基底位址的 ServiceHostBase

public:
 abstract System::ServiceModel::ServiceHostBase ^ CreateServiceHost(System::String ^ constructorString, cli::array <Uri ^> ^ baseAddresses);
public abstract System.ServiceModel.ServiceHostBase CreateServiceHost (string constructorString, Uri[] baseAddresses);
abstract member CreateServiceHost : string * Uri[] -> System.ServiceModel.ServiceHostBase
Public MustOverride Function CreateServiceHost (constructorString As String, baseAddresses As Uri()) As ServiceHostBase

參數

constructorString
String

傳遞至由處理站所建構之 ServiceHostBase 執行個體的初始化資料。

baseAddresses
Uri[]

型別 ArrayUri,其中包含主機的基底位址。

傳回

ServiceHostBase 物件,含有指定基底位址並以自訂的初始化資料進行初始化。

適用於