LocalRedirectResult LocalRedirectResult LocalRedirectResult LocalRedirectResult Class

Definition

An ActionResult that returns a Found (302), Moved Permanently (301), Temporary Redirect (307), or Permanent Redirect (308) response with a Location header to the supplied local URL.

public ref class LocalRedirectResult : Microsoft::AspNetCore::Mvc::ActionResult
public class LocalRedirectResult : Microsoft.AspNetCore.Mvc.ActionResult
type LocalRedirectResult = class
    inherit ActionResult
Public Class LocalRedirectResult
Inherits ActionResult
Inheritance
LocalRedirectResultLocalRedirectResultLocalRedirectResultLocalRedirectResult

Constructors

LocalRedirectResult(String) LocalRedirectResult(String) LocalRedirectResult(String) LocalRedirectResult(String)

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

LocalRedirectResult(String, Boolean) LocalRedirectResult(String, Boolean) LocalRedirectResult(String, Boolean) LocalRedirectResult(String, Boolean)

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

LocalRedirectResult(String, Boolean, Boolean) LocalRedirectResult(String, Boolean, Boolean) LocalRedirectResult(String, Boolean, Boolean) LocalRedirectResult(String, Boolean, Boolean)

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

Properties

Permanent Permanent Permanent Permanent

Gets or sets the value that specifies that the redirect should be permanent if true or temporary if false.

PreserveMethod PreserveMethod PreserveMethod PreserveMethod

Gets or sets an indication that the redirect preserves the initial request method.

Url Url Url Url

Gets or sets the local URL to redirect to.

UrlHelper UrlHelper UrlHelper UrlHelper

Gets or sets the IUrlHelper for this result.

Methods

ExecuteResult(ActionContext) ExecuteResult(ActionContext) ExecuteResult(ActionContext) ExecuteResult(ActionContext)
ExecuteResultAsync(ActionContext) ExecuteResultAsync(ActionContext) ExecuteResultAsync(ActionContext) ExecuteResultAsync(ActionContext)

Applies to