Compartilhar via


UrlHelper.Link Method (String, Object)

Returns a link for the specified route.

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

Syntax

'Declaration
Public Function Link ( _
    routeName As String, _
    routeValues As Object _
) As String
'Usage
Dim instance As UrlHelper 
Dim routeName As String 
Dim routeValues As Object 
Dim returnValue As String 

returnValue = instance.Link(routeName, _
    routeValues)
public string Link(
    string routeName,
    Object routeValues
)
public:
String^ Link(
    String^ routeName, 
    Object^ routeValues
)
member Link : 
        routeName:string * 
        routeValues:Object -> string
public function Link(
    routeName : String, 
    routeValues : Object
) : String

Parameters

Return Value

Type: System.String
A link for the specified route.

See Also

Reference

UrlHelper Class

Link Overload

System.Web.Http.Routing Namespace