Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ODataHttpRequestMessageExtensions Class

ODataHttpRequestMessageExtensions Class

 

Provides extension methods for the HttpRequestMessage class.

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

System.Object
  System.Net.Http.ODataHttpRequestMessageExtensions

[EditorBrowsableAttribute(EditorBrowsableState.Never)]
public static class ODataHttpRequestMessageExtensions

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticCreateODataErrorResponse(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_staticGetEdmModel(HttpRequestMessage)

Obsolete.Gets the EDM model associated with the request.

System_CAPS_pubmethodSystem_CAPS_staticGetInlineCount(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_staticGetNextPageLink(HttpRequestMessage)

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

System_CAPS_pubmethodSystem_CAPS_staticGetODataPath(HttpRequestMessage)

Obsolete.Gets the OData path of the request.

System_CAPS_pubmethodSystem_CAPS_staticGetODataPathHandler(HttpRequestMessage)

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

System_CAPS_pubmethodSystem_CAPS_staticGetODataRouteName(HttpRequestMessage)

Obsolete.Gets the route name for generating OData links.

System_CAPS_pubmethodSystem_CAPS_staticGetODataRoutingConventions(HttpRequestMessage)

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

System_CAPS_pubmethodSystem_CAPS_staticGetRoutingConventionsDataStore(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_staticGetSelectExpandClause(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_staticSetEdmModel(HttpRequestMessage, IEdmModel)

Obsolete.Sets the EDM model associated with the request.

System_CAPS_pubmethodSystem_CAPS_staticSetInlineCount(HttpRequestMessage, Int64)

Obsolete.Sets the inline count for the OData response.

System_CAPS_pubmethodSystem_CAPS_staticSetNextPageLink(HttpRequestMessage, Uri)

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

System_CAPS_pubmethodSystem_CAPS_staticSetODataPath(HttpRequestMessage, ODataPath)

Obsolete.Sets the OData path of the request.

System_CAPS_pubmethodSystem_CAPS_staticSetODataPathHandler(HttpRequestMessage, IODataPathHandler)

Obsolete.Sets the IODataPathHandler for generating links.

System_CAPS_pubmethodSystem_CAPS_staticSetODataRouteName(HttpRequestMessage, String)

Obsolete.Sets the route name for generating OData links.

System_CAPS_pubmethodSystem_CAPS_staticSetODataRoutingConventions(HttpRequestMessage, IEnumerable<IODataRoutingConvention>)

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

System_CAPS_pubmethodSystem_CAPS_staticSetSelectExpandClause(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.

Return to top
Show:
© 2015 Microsoft