Share via


UrlHelper.HttpRouteUrl Method

Definition

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.

Applies to