RedirectToRouteResult Constructors

Definition

Overloads

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

Initializes a new instance of the RedirectToRouteResult class by using the specified route values.

public RedirectToRouteResult (System.Web.Routing.RouteValueDictionary routeValues);
new System.Web.Mvc.RedirectToRouteResult : System.Web.Routing.RouteValueDictionary -> System.Web.Mvc.RedirectToRouteResult
Public Sub New (routeValues As RouteValueDictionary)

Parameters

routeValues
RouteValueDictionary

The route values.

Applies to

RedirectToRouteResult(String, RouteValueDictionary)

Initializes a new instance of the RedirectToRouteResult class by using the specified route name and route values.

public RedirectToRouteResult (string routeName, System.Web.Routing.RouteValueDictionary routeValues);
new System.Web.Mvc.RedirectToRouteResult : string * System.Web.Routing.RouteValueDictionary -> System.Web.Mvc.RedirectToRouteResult
Public Sub New (routeName As String, routeValues As RouteValueDictionary)

Parameters

routeName
String

The name of the route.

routeValues
RouteValueDictionary

The route values.

Applies to

RedirectToRouteResult(String, RouteValueDictionary, Boolean)

Initializes a new instance of the RedirectToRouteResult class by using the specified route name, route values, and permanent-redirection flag.

public RedirectToRouteResult (string routeName, System.Web.Routing.RouteValueDictionary routeValues, bool permanent);
new System.Web.Mvc.RedirectToRouteResult : string * System.Web.Routing.RouteValueDictionary * bool -> System.Web.Mvc.RedirectToRouteResult
Public Sub New (routeName As String, routeValues As RouteValueDictionary, permanent As Boolean)

Parameters

routeName
String

The name of the route.

routeValues
RouteValueDictionary

The route values.

permanent
Boolean

A value that indicates whether the redirection should be permanent.

Applies to