Share via


UrlHelperExtensions.CreateODataLink Method

 

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

Overload List

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

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

System_CAPS_pubmethodSystem_CAPS_static CreateODataLink(UrlHelper, ODataPathSegment[])

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

System_CAPS_pubmethodSystem_CAPS_static CreateODataLink(UrlHelper, String, IODataPathHandler, IList<ODataPathSegment>)

Generates an OData link using the given OData route name, path handler, and segments.

See Also

UrlHelperExtensions Class
System.Web.OData.Extensions Namespace

Return to top

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

Syntax

public static string CreateODataLink(
    this UrlHelper urlHelper,
    IList<ODataPathSegment> segments
)
public:
[ExtensionAttribute]
static String^ CreateODataLink(
    UrlHelper^ urlHelper,
    IList<ODataPathSegment^>^ segments
)
static member CreateODataLink : 
        urlHelper:UrlHelper *
        segments:IList<ODataPathSegment> -> string
<ExtensionAttribute>
Public Shared Function CreateODataLink (
    urlHelper As UrlHelper,
    segments As IList(Of ODataPathSegment)
) As String

Parameters

Return Value

Type: System.String

The generated OData link.

Return to top

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

Syntax

public static string CreateODataLink(
    this UrlHelper urlHelper,
    params ODataPathSegment[] segments
)
public:
[ExtensionAttribute]
static String^ CreateODataLink(
    UrlHelper^ urlHelper,
    ... array<ODataPathSegment^>^ segments
)
static member CreateODataLink : 
        urlHelper:UrlHelper *
        [<ParamArrayAttribute>] segments:ODataPathSegment[] -> string
<ExtensionAttribute>
Public Shared Function CreateODataLink (
    urlHelper As UrlHelper,
    ParamArray segments As ODataPathSegment()
) As String

Parameters

Return Value

Type: System.String

The generated OData link.

Return to top

Generates an OData link using the given OData route name, path handler, and segments.

Syntax

public static string CreateODataLink(
    this UrlHelper urlHelper,
    string routeName,
    IODataPathHandler pathHandler,
    IList<ODataPathSegment> segments
)
public:
[ExtensionAttribute]
static String^ CreateODataLink(
    UrlHelper^ urlHelper,
    String^ routeName,
    IODataPathHandler^ pathHandler,
    IList<ODataPathSegment^>^ segments
)
static member CreateODataLink : 
        urlHelper:UrlHelper *
        routeName:string *
        pathHandler:IODataPathHandler *
        segments:IList<ODataPathSegment> -> string
<ExtensionAttribute>
Public Shared Function CreateODataLink (
    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