RedirectResult Constructors

Definition

Overloads

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.

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

The target URL.

Exceptions

The url parameter is null.

Applies to

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

The URL.

permanent
Boolean

A value that indicates whether the redirection should be permanent.

Applies to