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
RedirectToRouteResult

Constructors

RedirectToRouteResult(RouteValueDictionary)

Initializes a new instance of the RedirectToRouteResult class by using the specified 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(String, RouteValueDictionary)

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

Properties

Permanent

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

RouteName

Gets or sets the name of the route.

RouteValues

Gets or sets the route values.

Methods

ExecuteResult(ControllerContext)

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

Applies to