RedirectResult RedirectResult RedirectResult Constructors

Definition

Overloads

RedirectResult(String) RedirectResult(String) RedirectResult(String)

Initializes a new instance of the RedirectResult class.

RedirectResult(String, Boolean) RedirectResult(String, Boolean) RedirectResult(String, Boolean)

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

RedirectResult(String) RedirectResult(String) RedirectResult(String)

Initializes a new instance of the RedirectResult class.

public RedirectResult (string url);
new System.Web.Mvc.RedirectResult : string -> System.Web.Mvc.RedirectResult
Public Sub New (url As String)

Parameters

url
String String String

The target URL.

Exceptions

RedirectResult(String, Boolean) RedirectResult(String, Boolean) RedirectResult(String, Boolean)

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

public RedirectResult (string url, bool permanent);
new System.Web.Mvc.RedirectResult : string * bool -> System.Web.Mvc.RedirectResult
Public Sub New (url As String, permanent As Boolean)

Parameters

url
String String String

The URL.

permanent
Boolean Boolean Boolean

A value that indicates whether the redirection should be permanent.

Applies to