Share via


IDataServiceHost2 Interface

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

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

Syntax

'Declaration
Public Interface IDataServiceHost2 _
    Inherits IDataServiceHost
'Usage
Dim instance As IDataServiceHost2
public interface IDataServiceHost2 : IDataServiceHost
public interface class IDataServiceHost2 : IDataServiceHost
type IDataServiceHost2 =  
    interface 
        interface IDataServiceHost 
    end
public interface IDataServiceHost2 extends IDataServiceHost

The IDataServiceHost2 type exposes the following members.

Properties

  Name Description
Public property AbsoluteRequestUri Gets an absolute URI that is the URI as sent by the client. (Inherited from IDataServiceHost.)
Public property AbsoluteServiceUri Gets an absolute URI that is the root URI of the data service. (Inherited from IDataServiceHost.)
Public property RequestAccept The transport protocol specified by the request accept header. (Inherited from IDataServiceHost.)
Public property RequestAcceptCharSet Gets a string representing the value of the Accept-Charset HTTP header. (Inherited from IDataServiceHost.)
Public property RequestContentType Gets the transport protocol specified by the content type header. (Inherited from IDataServiceHost.)
Public property RequestHeaders Request header for an HTTP request.
Public property RequestHttpMethod Gets the request method of GET, PUT, POST, or DELETE. (Inherited from IDataServiceHost.)
Public property RequestIfMatch Gets the value for the If-Match header on the current request. (Inherited from IDataServiceHost.)
Public property RequestIfNoneMatch Gets the value for the If-None-Match header on the current request. (Inherited from IDataServiceHost.)
Public property RequestMaxVersion Gets the value that identifies the highest version that the request client is able to process. (Inherited from IDataServiceHost.)
Public property RequestStream Gets the stream that contains the HTTP request body. (Inherited from IDataServiceHost.)
Public property RequestVersion Gets the value that identifies the version of the request that the client submitted, possibly null. (Inherited from IDataServiceHost.)
Public property ResponseCacheControl Gets a string value that represents cache control information. (Inherited from IDataServiceHost.)
Public property ResponseContentType Gets the transport protocol of the response. (Inherited from IDataServiceHost.)
Public property ResponseETag Gets an eTag value that represents the state of data in response. (Inherited from IDataServiceHost.)
Public property ResponseHeaders Response header for an HTTP response.
Public property ResponseLocation Gets or sets the service location. (Inherited from IDataServiceHost.)
Public property ResponseStatusCode Gets or sets the response code that indicates results of query. (Inherited from IDataServiceHost.)
Public property ResponseStream Gets the response stream to which the HTTP response body will be written. (Inherited from IDataServiceHost.)
Public property ResponseVersion Gets the version used by the host in the response. (Inherited from IDataServiceHost.)

Top

Methods

  Name Description
Public method GetQueryStringItem Gets a data item identified by the identity key contained by the parameter of the method. (Inherited from IDataServiceHost.)
Public method ProcessException Handles a data service exception using information in the args parameter. (Inherited from IDataServiceHost.)

Top

See Also

Reference

System.Data.Services Namespace