Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

UrlHelper.Route Method

 

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

Return to top

UrlHelper.Route Method (String, IDictionary(Of String, Object))

Returns the route for the UrlHelper.

Public Overridable Function Route (
	routeName As String,
	routeValues As IDictionary(Of String, Object)
) As String

Parameters

routeName
Type: System.String

The name of the route.

routeValues
Type: System.Collections.Generic.IDictionary(Of String, Object)

A list of route values.

Return Value

Type: System.String

The route for the UrlHelper.

Return to top

UrlHelper.Route Method (String, Object)

Returns the route for the UrlHelper.

Public Overridable Function Route (
	routeName As String,
	routeValues As Object
) As String

Parameters

routeName
Type: System.String

The name of the route.

routeValues
Type: System.Object

The route values.

Return Value

Type: System.String

The route for the UrlHelper.

Return to top
Show: