This documentation is archived and is not being maintained.

IDataServiceHost2 Interface

Defines extensions to IDataServiceHost needed for request and response headers in HTTP.

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

public interface class IDataServiceHost2 : IDataServiceHost

The IDataServiceHost2 type exposes the following members.

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

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

.NET Framework

Supported in: 4

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.
Show: