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

一个 ServiceHostBase 对象,包含指定 URI 的服务主机。

适用于