LocalRedirectResult Constructors

Definition

Overloads

LocalRedirectResult(String)

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

LocalRedirectResult(String, Boolean)

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

LocalRedirectResult(String, Boolean, Boolean)

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

LocalRedirectResult(String)

Source:
LocalRedirectResult.cs
Source:
LocalRedirectResult.cs

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

public:
 LocalRedirectResult(System::String ^ localUrl);
public LocalRedirectResult (string localUrl);
new Microsoft.AspNetCore.Mvc.LocalRedirectResult : string -> Microsoft.AspNetCore.Mvc.LocalRedirectResult
Public Sub New (localUrl As String)

Parameters

localUrl
String

The local URL to redirect to.

Applies to

LocalRedirectResult(String, Boolean)

Source:
LocalRedirectResult.cs
Source:
LocalRedirectResult.cs

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

public:
 LocalRedirectResult(System::String ^ localUrl, bool permanent);
public LocalRedirectResult (string localUrl, bool permanent);
new Microsoft.AspNetCore.Mvc.LocalRedirectResult : string * bool -> Microsoft.AspNetCore.Mvc.LocalRedirectResult
Public Sub New (localUrl As String, permanent As Boolean)

Parameters

localUrl
String

The local URL to redirect to.

permanent
Boolean

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

Applies to

LocalRedirectResult(String, Boolean, Boolean)

Source:
LocalRedirectResult.cs
Source:
LocalRedirectResult.cs

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

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

Parameters

localUrl
String

The local URL to redirect to.

permanent
Boolean

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

preserveMethod
Boolean

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

Applies to