UrlHelper::Action Method
Generates a fully qualified URL to an action method.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
| Name | Description | |
|---|---|---|
![]() | Action() | Generates a string to a fully qualified URL to an action method. |
![]() | Action(String^) | Generates a fully qualified URL to an action method by using the specified action name. |
![]() | Action(String^, Object^) | Generates a fully qualified URL to an action method by using the specified action name and route values. |
![]() | Action(String^, RouteValueDictionary^) | Generates a fully qualified URL to an action method for the specified action name and route values. |
![]() | Action(String^, String^) | Generates a fully qualified URL to an action method by using the specified action name and controller name. |
![]() | Action(String^, String^, Object^) | Generates a fully qualified URL to an action method by using the specified action name, controller name, and route values. |
![]() | Action(String^, String^, Object^, String^) | Generates a fully qualified URL to an action method by using the specified action name, controller name, route values, and protocol to use. |
![]() | Action(String^, String^, RouteValueDictionary^) | Generates a fully qualified URL to an action method by using the specified action name, controller name, and route values. |
![]() | Action(String^, String^, RouteValueDictionary^, String^) | Generates a fully qualified URL for an action method by using the specified action name, controller name, route values, and protocol to use. |
![]() | Action(String^, String^, RouteValueDictionary^, String^, String^) | Generates a fully qualified URL for an action method by using the specified action name, controller name, route values, protocol to use and host name. |
UrlHelper::Action Method ()
Generates a string to a fully qualified URL to an action method.
UrlHelper::Action Method (String^)
Generates a fully qualified URL to an action method by using the specified action name.
Parameters
- actionName
-
Type:
System::String^
The name of the action method.
UrlHelper::Action Method (String^, Object^)
Generates a fully qualified URL to an action method by using the specified action name and route values.
Parameters
- actionName
-
Type:
System::String^
The name of the action method.
- routeValues
-
Type:
System::Object^
An object that contains the parameters for a route. The parameters are retrieved through reflection by examining the properties of the object. The object is typically created by using object initializer syntax.
UrlHelper::Action Method (String^, RouteValueDictionary^)
Generates a fully qualified URL to an action method for the specified action name and route values.
Parameters
- actionName
-
Type:
System::String^
The name of the action method.
- routeValues
-
Type:
System.Web.Routing::RouteValueDictionary^
An object that contains the parameters for a route.
UrlHelper::Action Method (String^, String^)
Generates a fully qualified URL to an action method by using the specified action name and controller name.
Parameters
- actionName
-
Type:
System::String^
The name of the action method.
- controllerName
-
Type:
System::String^
The name of the controller.
UrlHelper::Action Method (String^, String^, Object^)
Generates a fully qualified URL to an action method by using the specified action name, controller name, and route values.
public: virtual String^ Action( String^ actionName, String^ controllerName, Object^ routeValues )
Parameters
- actionName
-
Type:
System::String^
The name of the action method.
- controllerName
-
Type:
System::String^
The name of the controller.
- routeValues
-
Type:
System::Object^
An object that contains the parameters for a route. The parameters are retrieved through reflection by examining the properties of the object. The object is typically created by using object initializer syntax.
UrlHelper::Action Method (String^, String^, Object^, String^)
Generates a fully qualified URL to an action method by using the specified action name, controller name, route values, and protocol to use.
public: virtual String^ Action( String^ actionName, String^ controllerName, Object^ routeValues, String^ protocol )
Parameters
- actionName
-
Type:
System::String^
The name of the action method.
- controllerName
-
Type:
System::String^
The name of the controller.
- routeValues
-
Type:
System::Object^
An object that contains the parameters for a route. The parameters are retrieved through reflection by examining the properties of the object. The object is typically created by using object initializer syntax.
- protocol
-
Type:
System::String^
The protocol for the URL, such as "http" or "https".
UrlHelper::Action Method (String^, String^, RouteValueDictionary^)
Generates a fully qualified URL to an action method by using the specified action name, controller name, and route values.
public: virtual String^ Action( String^ actionName, String^ controllerName, RouteValueDictionary^ routeValues )
Parameters
- actionName
-
Type:
System::String^
The name of the action method.
- controllerName
-
Type:
System::String^
The name of the controller.
- routeValues
-
Type:
System.Web.Routing::RouteValueDictionary^
An object that contains the parameters for a route.
UrlHelper::Action Method (String^, String^, RouteValueDictionary^, String^)
Generates a fully qualified URL for an action method by using the specified action name, controller name, route values, and protocol to use.
public: virtual String^ Action( String^ actionName, String^ controllerName, RouteValueDictionary^ routeValues, String^ protocol )
Parameters
- actionName
-
Type:
System::String^
The name of the action method.
- controllerName
-
Type:
System::String^
The name of the controller.
- routeValues
-
Type:
System.Web.Routing::RouteValueDictionary^
An object that contains the parameters for a route.
- protocol
-
Type:
System::String^
The protocol for the URL, such as "http" or "https".
UrlHelper::Action Method (String^, String^, RouteValueDictionary^, String^, String^)
Generates a fully qualified URL for an action method by using the specified action name, controller name, route values, protocol to use and host name.
public: virtual String^ Action( String^ actionName, String^ controllerName, RouteValueDictionary^ routeValues, String^ protocol, String^ hostName )
Parameters
- actionName
-
Type:
System::String^
The name of the action method.
- controllerName
-
Type:
System::String^
The name of the controller.
- routeValues
-
Type:
System.Web.Routing::RouteValueDictionary^
An object that contains the parameters for a route.
- protocol
-
Type:
System::String^
The protocol for the URL, such as "http" or "https".
- hostName
-
Type:
System::String^
The host name for the URL.
