RedirectToRouteResult Constructor (String, RouteValueDictionary)
Initializes a new instance of the RedirectToRouteResult class by using the specified route name and route values.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
'Declaration
Public Sub New ( _
routeName As String, _
routeValues As RouteValueDictionary _
)
public RedirectToRouteResult(
string routeName,
RouteValueDictionary routeValues
)
public:
RedirectToRouteResult(
String^ routeName,
RouteValueDictionary^ routeValues
)
Parameters
- routeName
Type: System.String
The name of the route.
- routeValues
Type: System.Web.Routing.RouteValueDictionary
The route values.