ODataHttpRequestMessageExtensions.SetODataPath Method (HttpRequestMessage, ODataPath)
Note: This API is now obsolete.
Sets the OData path of the request.
Namespace: System.Net.Http
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Syntax
[ObsoleteAttribute("This method is obsolete; use the ODataProperties().Path property from the System.Web.Http.OData.Extensions or System.Web.OData.Extensions namespace.")]
public static void SetODataPath(
this HttpRequestMessage request,
ODataPath odataPath
)
public:
[ExtensionAttribute]
[ObsoleteAttribute("This method is obsolete; use the ODataProperties().Path property from the System.Web.Http.OData.Extensions or System.Web.OData.Extensions namespace.")]
static void SetODataPath(
HttpRequestMessage^ request,
ODataPath^ odataPath
)
[<ObsoleteAttribute("This method is obsolete; use the ODataProperties().Path property from the System.Web.Http.OData.Extensions or System.Web.OData.Extensions namespace.")>]
static member SetODataPath :
request:HttpRequestMessage *
odataPath:ODataPath -> unit
<ExtensionAttribute>
<ObsoleteAttribute("This method is obsolete; use the ODataProperties().Path property from the System.Web.Http.OData.Extensions or System.Web.OData.Extensions namespace.")>
Public Shared Sub SetODataPath (
request As HttpRequestMessage,
odataPath As ODataPath
)
Parameters
request
Type: System.Net.Http.HttpRequestMessageThe request.
odataPath
Type: System.Web.Http.OData.Routing.ODataPathThe OData path of the request.
See Also
ODataHttpRequestMessageExtensions Class
System.Net.Http Namespace
Return to top