UrlHelper::GenerateUrl Method
Returns a string that contains a URL.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | 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. |
UrlHelper::GenerateUrl Method (String^, String^, String^, RouteValueDictionary^, RouteCollection^, RequestContext^, Boolean)
Returns a string that contains a URL.
public: static String^ GenerateUrl( String^ routeName, String^ actionName, String^ controllerName, RouteValueDictionary^ routeValues, RouteCollection^ routeCollection, RequestContext^ requestContext, bool includeImplicitMvcValues )
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.
There are two implicit MVC values, "action" and "controller".
UrlHelper::GenerateUrl Method (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, RouteValueDictionary^ routeValues, RouteCollection^ routeCollection, RequestContext^ requestContext, bool includeImplicitMvcValues )
Parameters
- routeName
-
Type:
System::String^
The route name.
- actionName
-
Type:
System::String^
The action name.
- controllerName
-
Type:
System::String^
The controller name.
- protocol
-
Type:
System::String^
The HTTP protocol.
- hostName
-
Type:
System::String^
The host name.
- fragment
-
Type:
System::String^
The fragment.
- 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.
There are two implicit MVC values, "action" and "controller".
Show:

