UrlHelper.Link Method
Namespace: System.Web.Http.Routing
Assembly: System.Web.Http (in System.Web.Http.dll)
Overload List
Name | Description | |
---|---|---|
Link(String, IDictionary<String, Object>) | Returns a link for the specified route. |
|
Link(String, Object) | Returns a link for the specified route. |
See Also
UrlHelper Class
System.Web.Http.Routing Namespace
Return to top
UrlHelper.Link Method (String, IDictionary<String, Object>)
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
routeName
Type: System.StringThe name of the route.
routeValues
Type: System.Collections.Generic.IDictionary<String, Object>An object that contains the parameters for a route.
Return Value
Type: System.String
A link for the specified route.
Return to top
UrlHelper.Link Method (String, Object)
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
routeName
Type: System.StringThe name of the route.
routeValues
Type: System.ObjectA route value.
Return Value
Type: System.String
A link for the specified route.
Return to top