DataService<T>.AttachHost Method (IDataServiceHost)


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

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

Namespace:   System.Data.Services
Assembly:  System.Data.Services (in System.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).

.NET Framework
Available since 3.5
Return to top