RedirectToRouteResult RedirectToRouteResult RedirectToRouteResult Class

Definition

Represents a result that performs a redirection by using the specified route values dictionary.

public class RedirectToRouteResult : System.Web.Mvc.ActionResult
type RedirectToRouteResult = class
    inherit ActionResult
Public Class RedirectToRouteResult
Inherits ActionResult
Inheritance
RedirectToRouteResultRedirectToRouteResultRedirectToRouteResult

Constructors

RedirectToRouteResult(RouteValueDictionary) RedirectToRouteResult(RouteValueDictionary) RedirectToRouteResult(RouteValueDictionary)

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

RedirectToRouteResult(String, RouteValueDictionary) RedirectToRouteResult(String, RouteValueDictionary) RedirectToRouteResult(String, RouteValueDictionary)

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

RedirectToRouteResult(String, RouteValueDictionary, Boolean) RedirectToRouteResult(String, RouteValueDictionary, Boolean) RedirectToRouteResult(String, RouteValueDictionary, Boolean)

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

Properties

Permanent Permanent Permanent

Gets a value that indicates whether the redirection should be permanent.

RouteName RouteName RouteName

Gets or sets the name of the route.

RouteValues RouteValues RouteValues

Gets or sets the route values.

Methods

ExecuteResult(ControllerContext) ExecuteResult(ControllerContext) ExecuteResult(ControllerContext)

Enables processing of the result of an action method by a custom type that inherits from the ActionResult class.

Applies to