DataServiceHostFactory.CreateServiceHost(Type, Uri[]) Method

Definition

Creates a new DataServiceHost from the URI.

C#
protected override System.ServiceModel.ServiceHost CreateServiceHost (Type serviceType, Uri[] baseAddresses);

Parameters

serviceType
Type

Specifies the type of WCF service to host.

baseAddresses
Uri[]

An array of base addresses for the service.

Returns

The created DataServiceHost object.

Applies to

Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1