ODataUrlHelperExtensions.ODataLink Method
Namespace: System.Web.Http
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Overload List
Name | Description | |
---|---|---|
ODataLink(UrlHelper, IList<ODataPathSegment>) | Obsolete.Generates an OData link using the request's OData route name and path handler and given segments. |
|
ODataLink(UrlHelper, ODataPathSegment[]) | Obsolete.Generates an OData link using the request's OData route name and path handler and given segments. |
|
ODataLink(UrlHelper, String, IODataPathHandler, IList<ODataPathSegment>) | Obsolete.Generates an OData link using the given OData route name, path handler, and segments. |
See Also
ODataUrlHelperExtensions Class
System.Web.Http Namespace
Return to top
ODataUrlHelperExtensions.ODataLink Method (UrlHelper, IList<ODataPathSegment>)
Note: This API is now obsolete.
Generates an OData link using the request's OData route name and path handler and given segments.
Syntax
[ObsoleteAttribute("This method is obsolete; use the CreateODataLink method from the System.Web.Http.OData.Extensions or System.Web.OData.Extensions namespace.")]
public static string ODataLink(
this UrlHelper urlHelper,
IList<ODataPathSegment> segments
)
public:
[ExtensionAttribute]
[ObsoleteAttribute("This method is obsolete; use the CreateODataLink method from the System.Web.Http.OData.Extensions or System.Web.OData.Extensions namespace.")]
static String^ ODataLink(
UrlHelper^ urlHelper,
IList<ODataPathSegment^>^ segments
)
[<ObsoleteAttribute("This method is obsolete; use the CreateODataLink method from the System.Web.Http.OData.Extensions or System.Web.OData.Extensions namespace.")>]
static member ODataLink :
urlHelper:UrlHelper *
segments:IList<ODataPathSegment> -> string
<ExtensionAttribute>
<ObsoleteAttribute("This method is obsolete; use the CreateODataLink method from the System.Web.Http.OData.Extensions or System.Web.OData.Extensions namespace.")>
Public Shared Function ODataLink (
urlHelper As UrlHelper,
segments As IList(Of ODataPathSegment)
) As String
Parameters
urlHelper
Type: System.Web.Http.Routing.UrlHelperThe URL helper.
segments
Type: System.Collections.Generic.IList<ODataPathSegment>The OData path segments.
Return Value
Type: System.String
The generated OData link.
Return to top
ODataUrlHelperExtensions.ODataLink Method (UrlHelper, ODataPathSegment[])
Note: This API is now obsolete.
Generates an OData link using the request's OData route name and path handler and given segments.
Syntax
[ObsoleteAttribute("This method is obsolete; use the CreateODataLink method from the System.Web.Http.OData.Extensions or System.Web.OData.Extensions namespace.")]
public static string ODataLink(
this UrlHelper urlHelper,
params ODataPathSegment[] segments
)
public:
[ExtensionAttribute]
[ObsoleteAttribute("This method is obsolete; use the CreateODataLink method from the System.Web.Http.OData.Extensions or System.Web.OData.Extensions namespace.")]
static String^ ODataLink(
UrlHelper^ urlHelper,
... array<ODataPathSegment^>^ segments
)
[<ObsoleteAttribute("This method is obsolete; use the CreateODataLink method from the System.Web.Http.OData.Extensions or System.Web.OData.Extensions namespace.")>]
static member ODataLink :
urlHelper:UrlHelper *
[<ParamArrayAttribute>] segments:ODataPathSegment[] -> string
<ExtensionAttribute>
<ObsoleteAttribute("This method is obsolete; use the CreateODataLink method from the System.Web.Http.OData.Extensions or System.Web.OData.Extensions namespace.")>
Public Shared Function ODataLink (
urlHelper As UrlHelper,
ParamArray segments As ODataPathSegment()
) As String
Parameters
urlHelper
Type: System.Web.Http.Routing.UrlHelperThe URL helper.
segments
Type: System.Web.Http.OData.Routing.ODataPathSegment[]The OData path segments.
Return Value
Type: System.String
The generated OData link.
Return to top
ODataUrlHelperExtensions.ODataLink Method (UrlHelper, String, IODataPathHandler, IList<ODataPathSegment>)
Note: This API is now obsolete.
Generates an OData link using the given OData route name, path handler, and segments.
Syntax
[ObsoleteAttribute("This method is obsolete; use the CreateODataLink method from the System.Web.Http.OData.Extensions or System.Web.OData.Extensions namespace.")]
public static string ODataLink(
this UrlHelper urlHelper,
string routeName,
IODataPathHandler pathHandler,
IList<ODataPathSegment> segments
)
public:
[ExtensionAttribute]
[ObsoleteAttribute("This method is obsolete; use the CreateODataLink method from the System.Web.Http.OData.Extensions or System.Web.OData.Extensions namespace.")]
static String^ ODataLink(
UrlHelper^ urlHelper,
String^ routeName,
IODataPathHandler^ pathHandler,
IList<ODataPathSegment^>^ segments
)
[<ObsoleteAttribute("This method is obsolete; use the CreateODataLink method from the System.Web.Http.OData.Extensions or System.Web.OData.Extensions namespace.")>]
static member ODataLink :
urlHelper:UrlHelper *
routeName:string *
pathHandler:IODataPathHandler *
segments:IList<ODataPathSegment> -> string
<ExtensionAttribute>
<ObsoleteAttribute("This method is obsolete; use the CreateODataLink method from the System.Web.Http.OData.Extensions or System.Web.OData.Extensions namespace.")>
Public Shared Function ODataLink (
urlHelper As UrlHelper,
routeName As String,
pathHandler As IODataPathHandler,
segments As IList(Of ODataPathSegment)
) As String
Parameters
urlHelper
Type: System.Web.Http.Routing.UrlHelperThe URL helper.
routeName
Type: System.StringThe name of the OData route.
pathHandler
Type: System.Web.Http.OData.Routing.IODataPathHandlerThe path handler to use for generating the link.
segments
Type: System.Collections.Generic.IList<ODataPathSegment>The OData path segments.
Return Value
Type: System.String
The generated OData link.
Return to top