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)

Syntax

'Declaration
Public Sub AttachHost ( _
    host As IDataServiceHost _
)
'Usage
Dim instance As DataService 
Dim host As IDataServiceHost

instance.AttachHost(host)
public void AttachHost(
    IDataServiceHost host
)
public:
void AttachHost(
    IDataServiceHost^ host
)
member AttachHost : 
        host:IDataServiceHost -> unit
public function AttachHost(
    host : IDataServiceHost
)

Parameters

Remarks

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).

See Also

Reference

DataService<T> Class

System.Data.Services Namespace