Controller.RedirectToRoute Method

Definition

Overloads

RedirectToRoute(Object)

Redirects to the specified route using the specified route values.

RedirectToRoute(String)

Redirects to the specified route using the route name.

RedirectToRoute(RouteValueDictionary)

Redirects to the specified route using the route dictionary.

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.

RedirectToRoute(Object)

Redirects to the specified route using the specified route values.

protected internal System.Web.Mvc.RedirectToRouteResult RedirectToRoute (object routeValues);
member this.RedirectToRoute : obj -> System.Web.Mvc.RedirectToRouteResult
Protected Friend Function RedirectToRoute (routeValues As Object) As RedirectToRouteResult

Parameters

routeValues
Object

The parameters for a route.

Returns

The redirect-to-route result object.

Applies to

RedirectToRoute(String)

Redirects to the specified route using the route name.

protected internal System.Web.Mvc.RedirectToRouteResult RedirectToRoute (string routeName);
member this.RedirectToRoute : string -> System.Web.Mvc.RedirectToRouteResult
Protected Friend Function RedirectToRoute (routeName As String) As RedirectToRouteResult

Parameters

routeName
String

The name of the route.

Returns

The redirect-to-route result object.

Applies to

RedirectToRoute(RouteValueDictionary)

Redirects to the specified route using the route dictionary.

protected internal System.Web.Mvc.RedirectToRouteResult RedirectToRoute (System.Web.Routing.RouteValueDictionary routeValues);
member this.RedirectToRoute : System.Web.Routing.RouteValueDictionary -> System.Web.Mvc.RedirectToRouteResult
Protected Friend Function RedirectToRoute (routeValues As RouteValueDictionary) As RedirectToRouteResult

Parameters

routeValues
RouteValueDictionary

The parameters for a route.

Returns

The redirect-to-route result object.

Applies to

RedirectToRoute(String, Object)

Redirects to the specified route using the route name and route values.

protected internal System.Web.Mvc.RedirectToRouteResult RedirectToRoute (string routeName, object routeValues);
member this.RedirectToRoute : string * obj -> System.Web.Mvc.RedirectToRouteResult
Protected Friend Function RedirectToRoute (routeName As String, routeValues As Object) As RedirectToRouteResult

Parameters

routeName
String

The name of the route.

routeValues
Object

The parameters for a route.

Returns

The redirect-to-route result object.

Applies to

RedirectToRoute(String, RouteValueDictionary)

Redirects to the specified route using the route name and route dictionary.

protected internal virtual System.Web.Mvc.RedirectToRouteResult RedirectToRoute (string routeName, System.Web.Routing.RouteValueDictionary routeValues);
abstract member RedirectToRoute : string * System.Web.Routing.RouteValueDictionary -> System.Web.Mvc.RedirectToRouteResult
override this.RedirectToRoute : string * System.Web.Routing.RouteValueDictionary -> System.Web.Mvc.RedirectToRouteResult
Protected Friend Overridable Function RedirectToRoute (routeName As String, routeValues As RouteValueDictionary) As RedirectToRouteResult

Parameters

routeName
String

The name of the route.

routeValues
RouteValueDictionary

The parameters for a route.

Returns

The redirect-to-route result object.

Applies to