DataServiceHost(Type, Uri[]) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Instantiates DataServiceHost for WCF Data Services.
public:
DataServiceHost(Type ^ serviceType, cli::array <Uri ^> ^ baseAddresses);
public DataServiceHost (Type serviceType, Uri[] baseAddresses);
new System.Data.Services.DataServiceHost : Type * Uri[] -> System.Data.Services.DataServiceHost
Public Sub New (serviceType As Type, baseAddresses As Uri())
Parameters
- serviceType
- Type
Identifies the WCF Data Services to the host.
- baseAddresses
- 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.