UrlHelper.Link Method (String, IDictionary<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 IDictionary(Of String, Object) _
) As String
'Usage
Dim instance As UrlHelper
Dim routeName As String
Dim routeValues As IDictionary(Of String, Object)
Dim returnValue As String
returnValue = instance.Link(routeName, _
routeValues)
public string Link(
string routeName,
IDictionary<string, Object> routeValues
)
public:
String^ Link(
String^ routeName,
IDictionary<String^, Object^>^ routeValues
)
member Link :
routeName:string *
routeValues:IDictionary<string, Object> -> string
public function Link(
routeName : String,
routeValues : IDictionary<String, Object>
) : 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.