Share via


ODataHttpRequestMessageExtensions.GetODataRoutingConventions Method (HttpRequestMessage)

 

Note: This API is now obsolete.

Gets the OData routing conventions for controller and action selection.

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

Syntax

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

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<IODataRoutingConvention>

The OData routing conventions for controller and action selection or null if there aren't any.

See Also

ODataHttpRequestMessageExtensions Class
System.Net.Http Namespace

Return to top