共用方式為


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

定義

建立特定 URI 的服務主機。

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

參數

constructorString
String

包含 Web 主機參數的字串。

baseAddresses
Uri[]

要為其建立 ServiceHostBase 物件的 URI 陣列。

傳回

ServiceHostBase

包含特定 URI 之服務主機的 ServiceHostBase 物件。

適用於