UrlHelper.GenerateUrl UrlHelper.GenerateUrl Method

Definition

Overloads

GenerateUrl(String, String, String, RouteValueDictionary, RouteCollection, RequestContext, Boolean) GenerateUrl(String, String, String, RouteValueDictionary, RouteCollection, RequestContext, Boolean)

Returns a string that contains a URL.

GenerateUrl(String, String, String, String, String, String, RouteValueDictionary, RouteCollection, RequestContext, Boolean) GenerateUrl(String, String, String, String, String, String, RouteValueDictionary, RouteCollection, RequestContext, Boolean)

Returns a string that contains a URL.

GenerateUrl(String, String, String, RouteValueDictionary, RouteCollection, RequestContext, Boolean) GenerateUrl(String, String, String, RouteValueDictionary, RouteCollection, RequestContext, Boolean)

Returns a string that contains a URL.

public static string GenerateUrl (string routeName, string actionName, string controllerName, System.Web.Routing.RouteValueDictionary routeValues, System.Web.Routing.RouteCollection routeCollection, System.Web.Routing.RequestContext requestContext, bool includeImplicitMvcValues);
static member GenerateUrl : string * string * string * System.Web.Routing.RouteValueDictionary * System.Web.Routing.RouteCollection * System.Web.Routing.RequestContext * bool -> string

Parameters

routeName
String String

The route name.

actionName
String String

The action name.

controllerName
String String

The controller name.

routeValues
RouteValueDictionary RouteValueDictionary

The route values.

routeCollection
RouteCollection RouteCollection

The route collection.

requestContext
RequestContext RequestContext

The request context.

includeImplicitMvcValues
Boolean Boolean

true to include implicit MVC values; otherwise false.

Returns

A string that contains a URL.

GenerateUrl(String, String, String, String, String, String, RouteValueDictionary, RouteCollection, RequestContext, Boolean) GenerateUrl(String, String, String, String, String, String, RouteValueDictionary, RouteCollection, RequestContext, Boolean)

Returns a string that contains a URL.

public static string GenerateUrl (string routeName, string actionName, string controllerName, string protocol, string hostName, string fragment, System.Web.Routing.RouteValueDictionary routeValues, System.Web.Routing.RouteCollection routeCollection, System.Web.Routing.RequestContext requestContext, bool includeImplicitMvcValues);
static member GenerateUrl : string * string * string * string * string * string * System.Web.Routing.RouteValueDictionary * System.Web.Routing.RouteCollection * System.Web.Routing.RequestContext * bool -> string

Parameters

routeName
String String

The route name.

actionName
String String

The action name.

controllerName
String String

The controller name.

protocol
String String

The HTTP protocol.

hostName
String String

The host name.

fragment
String String

The fragment.

routeValues
RouteValueDictionary RouteValueDictionary

The route values.

routeCollection
RouteCollection RouteCollection

The route collection.

requestContext
RequestContext RequestContext

The request context.

includeImplicitMvcValues
Boolean Boolean

true to include implicit MVC values; otherwise false.

Returns

A string that contains a URL.

Applies to