Share via


UrlHelper.Link Method

 

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

Overload List

Name Description
System_CAPS_pubmethod Link(String, IDictionary<String, Object>)

Returns a link for the specified route.

System_CAPS_pubmethod Link(String, Object)

Returns a link for the specified route.

See Also

UrlHelper Class
System.Web.Http.Routing Namespace

Return to top

Returns a link for the specified route.

Syntax

public virtual string Link(
    string routeName,
    IDictionary<string, object> routeValues
)
public:
virtual String^ Link(
    String^ routeName,
    IDictionary<String^, Object^>^ routeValues
)
abstract Link : 
        routeName:string *
        routeValues:IDictionary<string, Object> -> string
override Link : 
        routeName:string *
        routeValues:IDictionary<string, Object> -> string
Public Overridable Function Link (
    routeName As String,
    routeValues As IDictionary(Of String, Object)
) As String

Parameters

Return Value

Type: System.String

A link for the specified route.

Return to top

Returns a link for the specified route.

Syntax

public virtual string Link(
    string routeName,
    object routeValues
)
public:
virtual String^ Link(
    String^ routeName,
    Object^ routeValues
)
abstract Link : 
        routeName:string *
        routeValues:Object -> string
override Link : 
        routeName:string *
        routeValues:Object -> string
Public Overridable Function Link (
    routeName As String,
    routeValues As Object
) As String

Parameters

Return Value

Type: System.String

A link for the specified route.

Return to top