DataService<T>.AttachHost Method

Attaches the data service host to the data service identified by the parameter host.

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

public void AttachHost(
	IDataServiceHost host


Type: System.Data.Services.IDataServiceHost
An instance of IDataServiceHost.

The IDataServiceHost host attached is used by the data service to process requests. There is no requirement to set up a host when the data service is hosted in Windows Communication Foundation (WCF).