RedirectResult Class

Definition

Controls the processing of application actions by redirecting to a specified URI.

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

Constructors

RedirectResult(String)

Initializes a new instance of the RedirectResult class.

RedirectResult(String, Boolean)

Initializes a new instance of the RedirectResult class using the specified URL and permanent-redirection flag.

Properties

Permanent

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

Url

Gets or sets the target URL.

Methods

ExecuteResult(ControllerContext)

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

Applies to