UrlHelper.Route Method

 

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

Overload List

Name Description
System_CAPS_pubmethod Route(String, IDictionary<String, Object>)

Returns the route for the UrlHelper.

System_CAPS_pubmethod Route(String, Object)

Returns the route for the UrlHelper.

See Also

UrlHelper Class
System.Web.Http.Routing Namespace

Return to top

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

Returns the route for the UrlHelper.

Syntax

public virtual string Route(
    string routeName,
    IDictionary<string, object> routeValues
)
public:
virtual String^ Route(
    String^ routeName,
    IDictionary<String^, Object^>^ routeValues
)
abstract Route : 
        routeName:string *
        routeValues:IDictionary<string, Object> -> string
override Route : 
        routeName:string *
        routeValues:IDictionary<string, Object> -> string
Public Overridable Function Route (
    routeName As String,
    routeValues As IDictionary(Of String, Object)
) As String

Parameters

Return Value

Type: System.String

The route for the UrlHelper.

Return to top

UrlHelper.Route Method (String, Object)

Returns the route for the UrlHelper.

Syntax

public virtual string Route(
    string routeName,
    object routeValues
)
public:
virtual String^ Route(
    String^ routeName,
    Object^ routeValues
)
abstract Route : 
        routeName:string *
        routeValues:Object -> string
override Route : 
        routeName:string *
        routeValues:Object -> string
Public Overridable Function Route (
    routeName As String,
    routeValues As Object
) As String

Parameters

Return Value

Type: System.String

The route for the UrlHelper.

Return to top