RedirectResult RedirectResult RedirectResult Constructors

Definition

Overloads

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

Initializes a new instance of the RedirectResult class with the values provided.

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

Initializes a new instance of the RedirectResult class with the values provided.

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

Initializes a new instance of the RedirectResult class with the values provided.

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

Initializes a new instance of the RedirectResult class with the values provided.

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

Parameters

url
String String String

The local URL to redirect to.

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

Initializes a new instance of the RedirectResult class with the values provided.

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

Parameters

url
String String String

The URL to redirect to.

permanent
Boolean Boolean Boolean

Specifies whether the redirect should be permanent (301) or temporary (302).

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

Initializes a new instance of the RedirectResult class with the values provided.

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

Parameters

url
String String String

The URL to redirect to.

permanent
Boolean Boolean Boolean

Specifies whether the redirect should be permanent (301) or temporary (302).

preserveMethod
Boolean Boolean Boolean

If set to true, make the temporary redirect (307) or permanent redirect (308) preserve the initial request method.

Applies to