Redigera

Dela via


DataServiceHost(Type, Uri[]) Constructor

Definition

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.

Applies to