Modifier

Partager via


ApplicationServicesHostFactory.CreateServiceHost(Type, Uri[]) Method

Definition

Creates an instance of the service class that has the specified base address or addresses.

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

Parameters

serviceType
Type

The type of service host to create.

baseAddresses
Uri[]

An array of base addresses for the service.

Returns

A ServiceHost instance for the type of service that has the specified base address or addresses.

Remarks

Usually this method is called automatically by Windows Communication Foundation as part of service activation, and you do not have to call the method manually.

Applies to