Controller::RedirectToRoute Method
Redirects to a URL that is determined by the routing API.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
| Name | Description | |
|---|---|---|
![]() | RedirectToRoute(Object^) | Redirects to the specified route using the specified route values. |
![]() | RedirectToRoute(RouteValueDictionary^) | Redirects to the specified route using the route dictionary. |
![]() | RedirectToRoute(String^) | Redirects to the specified route using the route name. |
![]() | RedirectToRoute(String^, Object^) | Redirects to the specified route using the route name and route values. |
![]() | RedirectToRoute(String^, RouteValueDictionary^) | Redirects to the specified route using the route name and route dictionary. |
Controller::RedirectToRoute Method (Object^)
Redirects to the specified route using the specified route values.
Parameters
- routeValues
-
Type:
System::Object^
The parameters for a route.
Controller::RedirectToRoute Method (RouteValueDictionary^)
Redirects to the specified route using the route dictionary.
public protected: RedirectToRouteResult^ RedirectToRoute( RouteValueDictionary^ routeValues )
Parameters
- routeValues
-
Type:
System.Web.Routing::RouteValueDictionary^
The parameters for a route.
Controller::RedirectToRoute Method (String^)
Redirects to the specified route using the route name.
Parameters
- routeName
-
Type:
System::String^
The name of the route.
Controller::RedirectToRoute Method (String^, Object^)
Redirects to the specified route using the route name and route values.
public protected: RedirectToRouteResult^ RedirectToRoute( String^ routeName, Object^ routeValues )
Parameters
- routeName
-
Type:
System::String^
The name of the route.
- routeValues
-
Type:
System::Object^
The parameters for a route.
Controller::RedirectToRoute Method (String^, RouteValueDictionary^)
Redirects to the specified route using the route name and route dictionary.
public protected: virtual RedirectToRouteResult^ RedirectToRoute( String^ routeName, RouteValueDictionary^ routeValues )
Parameters
- routeName
-
Type:
System::String^
The name of the route.
- routeValues
-
Type:
System.Web.Routing::RouteValueDictionary^
The parameters for a route.
