Share via


ODataHttpRequestMessageExtensions.GetODataPath Method (HttpRequestMessage)

 

Note: This API is now obsolete.

Gets the OData path of the request.

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

Syntax

[ObsoleteAttribute("This method is obsolete; use the ODataProperties().Path property from the System.Web.Http.OData.Extensions or System.Web.OData.Extensions namespace.")]
public static ODataPath GetODataPath(
    this HttpRequestMessage request
)
public:
[ExtensionAttribute]
[ObsoleteAttribute("This method is obsolete; use the ODataProperties().Path property from the System.Web.Http.OData.Extensions or System.Web.OData.Extensions namespace.")]
static ODataPath^ GetODataPath(
    HttpRequestMessage^ request
)
[<ObsoleteAttribute("This method is obsolete; use the ODataProperties().Path property from the System.Web.Http.OData.Extensions or System.Web.OData.Extensions namespace.")>]
static member GetODataPath : 
        request:HttpRequestMessage -> ODataPath
<ExtensionAttribute>
<ObsoleteAttribute("This method is obsolete; use the ODataProperties().Path property from the System.Web.Http.OData.Extensions or System.Web.OData.Extensions namespace.")>
Public Shared Function GetODataPath (
    request As HttpRequestMessage
) As ODataPath

Parameters

Return Value

Type: System.Web.Http.OData.Routing.ODataPath

The OData path of the request or null if there isn't one

See Also

ODataHttpRequestMessageExtensions Class
System.Net.Http Namespace

Return to top