Share via


DataServiceHost Constructor

Instantiates DataServiceHost for WCF Data Services.

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

Syntax

'Declaration
Public Sub New ( _
    serviceType As Type, _
    baseAddresses As Uri() _
)
'Usage
Dim serviceType As Type 
Dim baseAddresses As Uri()

Dim instance As New DataServiceHost(serviceType, _
    baseAddresses)
public DataServiceHost(
    Type serviceType,
    Uri[] baseAddresses
)
public:
DataServiceHost(
    Type^ serviceType, 
    array<Uri^>^ baseAddresses
)
new : 
        serviceType:Type * 
        baseAddresses:Uri[] -> DataServiceHost
public function DataServiceHost(
    serviceType : Type, 
    baseAddresses : Uri[]
)

Parameters

  • serviceType
    Type: System.Type
    Identifies the WCF Data Services to the host.
  • baseAddresses
    Type: array<System.Uri[]
    The URI of the host.

Remarks

WCF Data Services defines a generic hosting interface IDataServiceHost that abstracts its implementation from a specific host. This allows WCF Data Services to run in a range of hosting environments. This interface should not be confused with DataServiceHost, which instead handles registration and activation for the service. A default IDataServiceHost is used in this case.

See Also

Reference

DataServiceHost Class

System.Data.Services Namespace