UrlHelper.HttpRouteUrl Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
HttpRouteUrl(String, Object) |
Generates a fully qualified URL for the specified route values. |
HttpRouteUrl(String, RouteValueDictionary) |
Generates a fully qualified URL for the specified route values. |
HttpRouteUrl(String, Object)
Generates a fully qualified URL for the specified route values.
public virtual string HttpRouteUrl (string routeName, object routeValues);
abstract member HttpRouteUrl : string * obj -> string
override this.HttpRouteUrl : string * obj -> string
Public Overridable Function HttpRouteUrl (routeName As String, routeValues As Object) As String
Parameters
- routeName
- String
The route name.
- routeValues
- Object
The route values.
Returns
A fully qualified URL for the specified route values.
Applies to
HttpRouteUrl(String, RouteValueDictionary)
Generates a fully qualified URL for the specified route values.
public virtual string HttpRouteUrl (string routeName, System.Web.Routing.RouteValueDictionary routeValues);
abstract member HttpRouteUrl : string * System.Web.Routing.RouteValueDictionary -> string
override this.HttpRouteUrl : string * System.Web.Routing.RouteValueDictionary -> string
Public Overridable Function HttpRouteUrl (routeName As String, routeValues As RouteValueDictionary) As String
Parameters
- routeName
- String
The route name.
- routeValues
- RouteValueDictionary
The route values.
Returns
A fully qualified URL for the specified route values.