Share via


ODataHttpRequestMessageExtensions.SetODataPathHandler Method (HttpRequestMessage, IODataPathHandler)

 

Note: This API is now obsolete.

Sets the IODataPathHandler for generating 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().PathHandler property from the System.Web.Http.OData.Extensions or System.Web.OData.Extensions namespace.")]
public static void SetODataPathHandler(
    this HttpRequestMessage request,
    IODataPathHandler pathHandler
)
public:
[ObsoleteAttribute("This method is obsolete; use the ODataProperties().PathHandler property from the System.Web.Http.OData.Extensions or System.Web.OData.Extensions namespace.")]
[ExtensionAttribute]
static void SetODataPathHandler(
    HttpRequestMessage^ request,
    IODataPathHandler^ pathHandler
)
[<ObsoleteAttribute("This method is obsolete; use the ODataProperties().PathHandler property from the System.Web.Http.OData.Extensions or System.Web.OData.Extensions namespace.")>]
static member SetODataPathHandler : 
        request:HttpRequestMessage *
        pathHandler:IODataPathHandler -> unit
<ObsoleteAttribute("This method is obsolete; use the ODataProperties().PathHandler property from the System.Web.Http.OData.Extensions or System.Web.OData.Extensions namespace.")>
<ExtensionAttribute>
Public Shared Sub SetODataPathHandler (
    request As HttpRequestMessage,
    pathHandler As IODataPathHandler
)

Parameters

See Also

ODataHttpRequestMessageExtensions Class
System.Net.Http Namespace

Return to top