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
- routeName
Type: System.String
The name of the route.
- routeValues
Type: System.Collections.Generic.IDictionary<String, Object>
A list of route values.
Return Value
Type: System.String
The route for the UrlHelper.