편집

다음을 통해 공유


WebServiceHostFactory.CreateServiceHost(Type, Uri[]) Method

Definition

Creates an instance of the specified WebServiceHost derived class with the specified base 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

An instance of a ServiceHost derived class.

Examples

The following example shows a basic implementation of this method.

Remarks

Override this method to create the required service host type and perform any needed processing.

Applies to