Bagikan melalui


DataServiceHostFactory.CreateServiceHost(Type, Uri[]) Metode

Definisi

Membuat baru DataServiceHost dari URI.

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

Parameter

serviceType
Type

Menentukan jenis layanan WCF yang akan dihosting.

baseAddresses
Uri[]

Array alamat dasar untuk layanan.

Mengembalikan

Objek yang dibuat DataServiceHost .

Berlaku untuk