RedirectToRouteResult Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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. |