UrlHelper.GenerateUrl 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
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) |
Returns a string that contains a URL. |
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
Public Shared Function GenerateUrl (routeName As String, actionName As String, controllerName As String, routeValues As RouteValueDictionary, routeCollection As RouteCollection, requestContext As RequestContext, includeImplicitMvcValues As Boolean) As String
Parameters
- routeName
- String
The route name.
- actionName
- String
The action name.
- controllerName
- String
The controller name.
- routeValues
- RouteValueDictionary
The route values.
- routeCollection
- RouteCollection
The route collection.
- requestContext
- RequestContext
The request context.
- includeImplicitMvcValues
- Boolean
true to include implicit MVC values; otherwise false.
Returns
A string that contains a URL.
Applies to
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
Public Shared Function GenerateUrl (routeName As String, actionName As String, controllerName As String, protocol As String, hostName As String, fragment As String, routeValues As RouteValueDictionary, routeCollection As RouteCollection, requestContext As RequestContext, includeImplicitMvcValues As Boolean) As String
Parameters
- routeName
- String
The route name.
- actionName
- String
The action name.
- controllerName
- String
The controller name.
- protocol
- String
The HTTP protocol.
- hostName
- String
The host name.
- fragment
- String
The fragment.
- routeValues
- RouteValueDictionary
The route values.
- routeCollection
- RouteCollection
The route collection.
- requestContext
- RequestContext
The request context.
- includeImplicitMvcValues
- Boolean
true to include implicit MVC values; otherwise false.
Returns
A string that contains a URL.