UrlHelper.Route Method
Namespace: System.Web.Http.Routing
Assembly: System.Web.Http (in System.Web.Http.dll)
Name | Description | |
---|---|---|
![]() |
Route(String, IDictionary<String, Object>) | Returns the route for the UrlHelper. |
![]() |
Route(String, Object) | Returns the route for the UrlHelper. |
UrlHelper Class
System.Web.Http.Routing Namespace
Return to top
Returns the route for the UrlHelper.
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
routeName
Type: System.StringThe name of the route.
routeValues
Type: System.Collections.Generic.IDictionary<String, Object>A list of route values.
Type: System.String
The route for the UrlHelper.
Return to top
Returns the route for the UrlHelper.
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
routeName
Type: System.StringThe name of the route.
routeValues
Type: System.ObjectThe route values.
Type: System.String
The route for the UrlHelper.
Return to top