DataServiceHost Constructor (Type, Uri[])

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com 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
)

Parameters

serviceType
Type: System.Type

Identifies the WCF Data Services to the host.

baseAddresses
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
Show: