Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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)

public string Link(
	string routeName,
	IDictionary<string, Object> routeValues
)

Parameters

routeName
Type: System.String

The 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.
Show:
© 2015 Microsoft