Share via


ODataUrlHelperExtensions.ODataLink Method

 

Namespace:   System.Web.Http
Assembly:  System.Web.Http.OData (in System.Web.Http.OData.dll)

Overload List

Name Description
System_CAPS_pubmethodSystem_CAPS_static ODataLink(UrlHelper, IList<ODataPathSegment>)

Obsolete.Generates an OData link using the request's OData route name and path handler and given segments.

System_CAPS_pubmethodSystem_CAPS_static ODataLink(UrlHelper, ODataPathSegment[])

Obsolete.Generates an OData link using the request's OData route name and path handler and given segments.

System_CAPS_pubmethodSystem_CAPS_static 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

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

Return Value

Type: System.String

The generated OData link.

Return to top

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

Return Value

Type: System.String

The generated OData link.

Return to top

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

Return Value

Type: System.String

The generated OData link.

Return to top