RedirectToRouteResult Constructor

 

Initializes a new instance of the RedirectToRouteResult class.

Namespace:   System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

NameDescription
System_CAPS_pubmethodRedirectToRouteResult(RouteValueDictionary)

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

System_CAPS_pubmethodRedirectToRouteResult(String, RouteValueDictionary)

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

System_CAPS_pubmethodRedirectToRouteResult(String, RouteValueDictionary, Boolean)

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

Return to top

RedirectToRouteResult Constructor (RouteValueDictionary)

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

Public Sub New (
	routeValues As RouteValueDictionary
)

Parameters

routeValues
Type: System.Web.Routing.RouteValueDictionary

The route values.

Return to top

RedirectToRouteResult Constructor (String, RouteValueDictionary)

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

Public Sub New (
	routeName As String,
	routeValues As RouteValueDictionary
)

Parameters

routeName
Type: System.String

The name of the route.

routeValues
Type: System.Web.Routing.RouteValueDictionary

The route values.

Return to top

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.

Return to top
Show: