ODataHttpRequestMessageExtensions.SetODataRoutingConventions Method (HttpRequestMessage, IEnumerable<IODataRoutingConvention>)
Note: This API is now obsolete.
Sets 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 void SetODataRoutingConventions(
this HttpRequestMessage request,
IEnumerable<IODataRoutingConvention> routingConventions
)
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 void SetODataRoutingConventions(
HttpRequestMessage^ request,
IEnumerable<IODataRoutingConvention^>^ routingConventions
)
[<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 SetODataRoutingConventions :
request:HttpRequestMessage *
routingConventions:IEnumerable<IODataRoutingConvention> -> unit
<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 Sub SetODataRoutingConventions (
request As HttpRequestMessage,
routingConventions As IEnumerable(Of IODataRoutingConvention)
)
Parameters
request
Type: System.Net.Http.HttpRequestMessageThe request.
routingConventions
Type: System.Collections.Generic.IEnumerable<IODataRoutingConvention>The OData routing conventions for controller and action selection.
See Also
ODataHttpRequestMessageExtensions Class
System.Net.Http Namespace
Return to top