Controller.RedirectToRoute Controller.RedirectToRoute Controller.RedirectToRoute Method

Definition

Overloads

RedirectToRoute(Object) RedirectToRoute(Object) RedirectToRoute(Object)

Redirects to the specified route using the specified route values.

RedirectToRoute(String) RedirectToRoute(String) RedirectToRoute(String)

Redirects to the specified route using the route name.

RedirectToRoute(RouteValueDictionary) RedirectToRoute(RouteValueDictionary) RedirectToRoute(RouteValueDictionary)

Redirects to the specified route using the route dictionary.

RedirectToRoute(String, Object) RedirectToRoute(String, Object) RedirectToRoute(String, Object)

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

RedirectToRoute(String, RouteValueDictionary) RedirectToRoute(String, RouteValueDictionary) RedirectToRoute(String, RouteValueDictionary)

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

RedirectToRoute(Object) RedirectToRoute(Object) 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 Object Object

The parameters for a route.

Returns

RedirectToRoute(String) RedirectToRoute(String) 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 String String

The name of the route.

Returns

RedirectToRoute(RouteValueDictionary) RedirectToRoute(RouteValueDictionary) 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 RouteValueDictionary RouteValueDictionary

The parameters for a route.

Returns

RedirectToRoute(String, Object) RedirectToRoute(String, Object) 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 String String

The name of the route.

routeValues
Object Object Object

The parameters for a route.

Returns

RedirectToRoute(String, RouteValueDictionary) RedirectToRoute(String, RouteValueDictionary) 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 String String

The name of the route.

routeValues
RouteValueDictionary RouteValueDictionary RouteValueDictionary

The parameters for a route.

Returns

Applies to