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[]

类型为 Array 且包含主机基址的 Uri

返回

ServiceHostBase

具有指定基址的 ServiceHostBase 对象,可使用自定义初始数据对其进行初始化。

适用于