ODataHttpRequestMessageExtensions Class
Provides extension methods for the HttpRequestMessage class.
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | 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. |
![]() ![]() | GetEdmModel(HttpRequestMessage^) | Obsolete.Gets the EDM model associated with the request. |
![]() ![]() | GetInlineCount(HttpRequestMessage^) | Obsolete.Gets the inline count for the OData response. Returns null if no count should be sent back to the client. |
![]() ![]() | GetNextPageLink(HttpRequestMessage^) | Obsolete.Gets the next page link for the OData response. |
![]() ![]() | GetODataPath(HttpRequestMessage^) | Obsolete.Gets the OData path of the request. |
![]() ![]() | GetODataPathHandler(HttpRequestMessage^) | Obsolete.Gets the IODataPathHandler for generating links. Creates a default IODataPathHandler if value is currently null. |
![]() ![]() | GetODataRouteName(HttpRequestMessage^) | Obsolete.Gets the route name for generating OData links. |
![]() ![]() | GetODataRoutingConventions(HttpRequestMessage^) | Obsolete.Gets the OData routing conventions for controller and action selection. |
![]() ![]() | 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. |
![]() ![]() | 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. |
![]() ![]() | SetEdmModel(HttpRequestMessage^, IEdmModel^) | Obsolete.Sets the EDM model associated with the request. |
![]() ![]() | SetInlineCount(HttpRequestMessage^, Int64) | Obsolete.Sets the inline count for the OData response. |
![]() ![]() | SetNextPageLink(HttpRequestMessage^, Uri^) | Obsolete.Sets the next page link for the OData response. |
![]() ![]() | SetODataPath(HttpRequestMessage^, ODataPath^) | Obsolete.Sets the OData path of the request. |
![]() ![]() | SetODataPathHandler(HttpRequestMessage^, IODataPathHandler^) | Obsolete.Sets the IODataPathHandler for generating links. |
![]() ![]() | SetODataRouteName(HttpRequestMessage^, String^) | Obsolete.Sets the route name for generating OData links. |
![]() ![]() | SetODataRoutingConventions(HttpRequestMessage^, IEnumerable<IODataRoutingConvention^>^) | Obsolete.Sets the OData routing conventions for controller and action selection. |
![]() ![]() | 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. |
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

