RedirectToRouteResult Constructor
Initializes a new instance of the RedirectToRouteResult class.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
| Name | Description | |
|---|---|---|
![]() | RedirectToRouteResult(RouteValueDictionary) | Initializes a new instance of the RedirectToRouteResult class by using the specified route values. |
![]() | RedirectToRouteResult(String, RouteValueDictionary) | Initializes a new instance of the RedirectToRouteResult class by using the specified route name and route values. |
![]() | RedirectToRouteResult(String, RouteValueDictionary, Boolean) | Initializes a new instance of the RedirectToRouteResult class by using the specified route name, route values, and permanent-redirection flag. |
RedirectToRouteResult Constructor (RouteValueDictionary)
Initializes a new instance of the RedirectToRouteResult class by using the specified route values.
Parameters
- routeValues
-
Type:
System.Web.Routing.RouteValueDictionary
The route values.
RedirectToRouteResult Constructor (String, RouteValueDictionary)
Initializes a new instance of the RedirectToRouteResult class by using the specified route name and route values.
Parameters
- routeName
-
Type:
System.String
The name of the route.
- routeValues
-
Type:
System.Web.Routing.RouteValueDictionary
The route values.
RedirectToRouteResult Constructor (String, RouteValueDictionary, Boolean)
Initializes a new instance of the RedirectToRouteResult class by using the specified route name, route values, and permanent-redirection flag.
Public Sub New ( routeName As String, routeValues As RouteValueDictionary, permanent As Boolean )
Parameters
- routeName
-
Type:
System.String
The name of the route.
- routeValues
-
Type:
System.Web.Routing.RouteValueDictionary
The route values.
- permanent
-
Type:
System.Boolean
A value that indicates whether the redirection should be permanent.
