ODataHttpRequestMessageExtensions Methods

 

Namespace:   System.Net.Http
Assembly:  System.Web.Http.OData (in System.Web.Http.OData.dll)

Methods

Name Description
System_CAPS_pubmethodSystem_CAPS_static CreateODataErrorResponse(HttpRequestMessage, HttpStatusCode, ODataError)

Obsolete.Helper method that performs content negotiation and creates a HttpResponseMessage representing an error with an instance of ObjectContent<T> wrapping oDataError as the content. If no formatter is found, this method returns a response with status 406 NotAcceptable.

This method requires that request has been associated with an instance of HttpConfiguration.

System_CAPS_pubmethodSystem_CAPS_static GetEdmModel(HttpRequestMessage)

Obsolete.Gets the EDM model associated with the request.

System_CAPS_pubmethodSystem_CAPS_static GetInlineCount(HttpRequestMessage)

Obsolete.Gets the inline count for the OData response. Returns null if no count should be sent back to the client.

System_CAPS_pubmethodSystem_CAPS_static GetNextPageLink(HttpRequestMessage)

Obsolete.Gets the next page link for the OData response.

System_CAPS_pubmethodSystem_CAPS_static GetODataPath(HttpRequestMessage)

Obsolete.Gets the OData path of the request.

System_CAPS_pubmethodSystem_CAPS_static GetODataPathHandler(HttpRequestMessage)

Obsolete.Gets the IODataPathHandler for generating links. Creates a default IODataPathHandler if value is currently null.

System_CAPS_pubmethodSystem_CAPS_static GetODataRouteName(HttpRequestMessage)

Obsolete.Gets the route name for generating OData links.

System_CAPS_pubmethodSystem_CAPS_static GetODataRoutingConventions(HttpRequestMessage)

Obsolete.Gets the OData routing conventions for controller and action selection.

System_CAPS_pubmethodSystem_CAPS_static GetRoutingConventionsDataStore(HttpRequestMessage)

Obsolete.Gets the data store used by IODataRoutingConventions to store any custom route data. Creates a new IDictionary<string, object> the first time it is called.

System_CAPS_pubmethodSystem_CAPS_static GetSelectExpandClause(HttpRequestMessage)

Obsolete.Gets the parsed OData SelectExpandClause of the request. The ODataMediaTypeFormatter will use this information (if any) while writing the response for this request.

System_CAPS_pubmethodSystem_CAPS_static SetEdmModel(HttpRequestMessage, IEdmModel)

Obsolete.Sets the EDM model associated with the request.

System_CAPS_pubmethodSystem_CAPS_static SetInlineCount(HttpRequestMessage, Int64)

Obsolete.Sets the inline count for the OData response.

System_CAPS_pubmethodSystem_CAPS_static SetNextPageLink(HttpRequestMessage, Uri)

Obsolete.Sets the next page link for the OData response.

System_CAPS_pubmethodSystem_CAPS_static SetODataPath(HttpRequestMessage, ODataPath)

Obsolete.Sets the OData path of the request.

System_CAPS_pubmethodSystem_CAPS_static SetODataPathHandler(HttpRequestMessage, IODataPathHandler)

Obsolete.Sets the IODataPathHandler for generating links.

System_CAPS_pubmethodSystem_CAPS_static SetODataRouteName(HttpRequestMessage, String)

Obsolete.Sets the route name for generating OData links.

System_CAPS_pubmethodSystem_CAPS_static SetODataRoutingConventions(HttpRequestMessage, IEnumerable<IODataRoutingConvention>)

Obsolete.Sets the OData routing conventions for controller and action selection.

System_CAPS_pubmethodSystem_CAPS_static SetSelectExpandClause(HttpRequestMessage, SelectExpandClause)

Obsolete.Sets the parsed OData SelectExpandClause of the request. The ODataMediaTypeFormatter will use this information (if any) while writing the response for this request.

See Also

ODataHttpRequestMessageExtensions Class
System.Net.Http Namespace

Return to top