DataServiceHost Constructor (Type, Uri[])


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Instantiates DataServiceHost for WCF Data Services.

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

public DataServiceHost(
	Type serviceType,
	Uri[] baseAddresses


Type: System.Type

Identifies the WCF Data Services to the host.

Type: System.Uri[]

The URI of the host.

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.

.NET Framework
Available since 3.5
Return to top