Freigeben über


UrlHelper.Route Method (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 Object _
) As String
'Usage
Dim instance As UrlHelper
Dim routeName As String
Dim routeValues As Object
Dim returnValue As String

returnValue = instance.Route(routeName, _
    routeValues)
public string Route(
    string routeName,
    Object routeValues
)
public:
String^ Route(
    String^ routeName, 
    Object^ routeValues
)
member Route : 
        routeName:string * 
        routeValues:Object -> string 
public function Route(
    routeName : String, 
    routeValues : 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