DataServiceHostFactory.CreateServiceHost Method (Type, array<Uri[])
Creates a new DataServiceHost from the URI.
Namespace: System.Data.Services
Assembly: Microsoft.Data.Services (in Microsoft.Data.Services.dll)
Syntax
'Declaration
Protected Overrides Function CreateServiceHost ( _
serviceType As Type, _
baseAddresses As Uri() _
) As ServiceHost
'Usage
Dim serviceType As Type
Dim baseAddresses As Uri()
Dim returnValue As ServiceHost
returnValue = Me.CreateServiceHost(serviceType, _
baseAddresses)
protected override ServiceHost CreateServiceHost(
Type serviceType,
Uri[] baseAddresses
)
protected:
virtual ServiceHost^ CreateServiceHost(
Type^ serviceType,
array<Uri^>^ baseAddresses
) override
abstract CreateServiceHost :
serviceType:Type *
baseAddresses:Uri[] -> ServiceHost
override CreateServiceHost :
serviceType:Type *
baseAddresses:Uri[] -> ServiceHost
protected override function CreateServiceHost(
serviceType : Type,
baseAddresses : Uri[]
) : ServiceHost
Parameters
- serviceType
Type: System.Type
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 new DataServiceHost.