UrlHelper.GenerateUrl Method (String, String, String, RouteValueDictionary, RouteCollection, RequestContext, Boolean)
Visual Studio 2010
Returns a string that contains a URL.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
'Declaration 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
- Type: System.String
The route name.
- actionName
- Type: System.String
The action name.
- controllerName
- Type: System.String
The controller name.
- routeValues
- Type: System.Web.Routing.RouteValueDictionary
The route values.
- routeCollection
- Type: System.Web.Routing.RouteCollection
The route collection.
- requestContext
- Type: System.Web.Routing.RequestContext
The request context.
- includeImplicitMvcValues
- Type: System.Boolean
true to include implicit MVC values; otherwise. false.
Community Additions
ADD
Show: