Share via


ODataHttpRequestMessageExtensions.SetODataRouteName Method (HttpRequestMessage, String)

 

Note: This API is now obsolete.

Sets 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 void SetODataRouteName(
    this HttpRequestMessage request,
    string routeName
)
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 void SetODataRouteName(
    HttpRequestMessage^ request,
    String^ routeName
)
[<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 SetODataRouteName : 
        request:HttpRequestMessage *
        routeName:string -> unit
<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 Sub SetODataRouteName (
    request As HttpRequestMessage,
    routeName As String
)

Parameters

  • routeName
    Type: System.String

    The route name for generating OData links.

See Also

ODataHttpRequestMessageExtensions Class
System.Net.Http Namespace

Return to top