DataServiceHostFactory::CreateServiceHost Method (Type^, array<Uri^>^)

 

Creates a new DataServiceHost from the URI.

Namespace:   System.Data.Services
Assembly:  System.Data.Services (in System.Data.Services.dll)

protected:
virtual ServiceHost^ CreateServiceHost(
	Type^ serviceType,
	array<Uri^>^ baseAddresses
) override

Parameters

serviceType
Type: System::Type^

Specifies the type of WCF service to host.

baseAddresses
Type: array<System::Uri^>^

An array of base addresses for the service.

Return Value

Type: System.ServiceModel::ServiceHost^

The created DataServiceHost object.

.NET Framework
Available since 3.5
Return to top
Show: