Share via


ODataHttpRequestMessageExtensions.GetODataRouteName Method (HttpRequestMessage)

 

Note: This API is now obsolete.

Gets the route name for generating OData links.

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

Syntax

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

Parameters

Return Value

Type: System.String

The route name for generating OData links or null if there isn't one.

See Also

ODataHttpRequestMessageExtensions Class
System.Net.Http Namespace

Return to top