UrlHelper.Route Method (String, IDictionary<String, Object>)

Returns the route for the UrlHelper.

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

Syntax

'Declaration
Public Function Route ( _
    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.Route(routeName, _
    routeValues)
public string Route(
    string routeName,
    IDictionary<string, Object> routeValues
)
public:
String^ Route(
    String^ routeName, 
    IDictionary<String^, Object^>^ routeValues
)
member Route : 
        routeName:string * 
        routeValues:IDictionary<string, Object> -> string 
public function Route(
    routeName : String, 
    routeValues : IDictionary<String, Object>
) : String

Parameters

Return Value

Type: System.String
The route for the UrlHelper.

See Also

Reference

UrlHelper Class

Route Overload

System.Web.Http.Routing Namespace