DataServiceHostFactory.CreateServiceHost(Type, Uri[]) 方法

定义

从 URI 创建新的 DataServiceHost

protected:
 override System::ServiceModel::ServiceHost ^ CreateServiceHost(Type ^ serviceType, cli::array <Uri ^> ^ baseAddresses);
protected override System.ServiceModel.ServiceHost CreateServiceHost (Type serviceType, Uri[] baseAddresses);
override this.CreateServiceHost : Type * Uri[] -> System.ServiceModel.ServiceHost
Protected Overrides Function CreateServiceHost (serviceType As Type, baseAddresses As Uri()) As ServiceHost

参数

serviceType
Type

指定要承载的 WCF 服务的类型。

baseAddresses
Uri[]

该服务的基址的数组。

返回

创建的 DataServiceHost 对象。

适用于