Export (0) Print
Expand All

IDataServiceHost Interface

Interface that specifies interactions between WCF Data Services and its hosting environment.

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

public interface IDataServiceHost

The IDataServiceHost type exposes the following members.

  NameDescription
Public propertyAbsoluteRequestUriGets an absolute URI that is the URI as sent by the client.
Public propertyAbsoluteServiceUriGets an absolute URI that is the root URI of the data service.
Public propertyRequestAcceptThe transport protocol specified by the request accept header.
Public propertyRequestAcceptCharSetGets a string representing the value of the Accept-Charset HTTP header.
Public propertyRequestContentTypeGets the transport protocol specified by the content type header.
Public propertyRequestHttpMethodGets the request method of GET, PUT, POST, or DELETE.
Public propertyRequestIfMatchGets the value for the If-Match header on the current request.
Public propertyRequestIfNoneMatchGets the value for the If-None-Match header on the current request.
Public propertyRequestMaxVersionGets the value that identifies the highest version that the request client is able to process.
Public propertyRequestStreamGets the stream that contains the HTTP request body.
Public propertyRequestVersionGets the value that identifies the version of the request that the client submitted, possibly null.
Public propertyResponseCacheControlGets a string value that represents cache control information.
Public propertyResponseContentTypeGets the transport protocol of the response.
Public propertyResponseETagGets an eTag value that represents the state of data in response.
Public propertyResponseLocationGets or sets the service location.
Public propertyResponseStatusCodeGets or sets the response code that indicates results of query.
Public propertyResponseStreamGets the response stream to which the HTTP response body will be written.
Public propertyResponseVersionGets the version used by the host in the response.
Top

  NameDescription
Public methodGetQueryStringItemGets a data item identified by the identity key contained by the parameter of the method.
Public methodProcessExceptionHandles a data service exception using information in the args parameter.
Top

Each component that hosts WCF Data Services, such as Windows Communication Foundation (WCF) must implement this interface. IDataServiceHost is the contract between WCF Data Services and its hosting environment. This abstraction allows the WCF Data Services runtime to be agnostic to any particular hosting environment. The interface provides WCF Data Services with access to inbound HTTP requests. A new object implementing this interface is instantiated for each HTTP request and is then used to inspect properties of the HTTP request and configure the HTTP response.

.NET Framework

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

ADD
Show:
© 2014 Microsoft