RedirectToActionResult RedirectToActionResult RedirectToActionResult Class

Definition

An ActionResult that returns a Found (302), Moved Permanently (301), Temporary Redirect (307), or Permanent Redirect (308) response with a Location header. Targets a controller action.

public class RedirectToActionResult : Microsoft.AspNetCore.Mvc.ActionResult, Microsoft.AspNetCore.Mvc.IActionResult, Microsoft.AspNetCore.Mvc.ViewFeatures.IKeepTempDataResult
type RedirectToActionResult = class
    inherit ActionResult
    interface IKeepTempDataResult
    interface IActionResult
Public Class RedirectToActionResult
Inherits ActionResult
Implements IActionResult, IKeepTempDataResult
Inheritance
RedirectToActionResultRedirectToActionResultRedirectToActionResult
Implements

Constructors

RedirectToActionResult(String, String, Object) RedirectToActionResult(String, String, Object) RedirectToActionResult(String, String, Object)

Initializes a new instance of the RedirectToActionResult with the values provided.

RedirectToActionResult(String, String, Object, Boolean) RedirectToActionResult(String, String, Object, Boolean) RedirectToActionResult(String, String, Object, Boolean)

Initializes a new instance of the RedirectToActionResult with the values provided.

RedirectToActionResult(String, String, Object, String) RedirectToActionResult(String, String, Object, String) RedirectToActionResult(String, String, Object, String)

Initializes a new instance of the RedirectToActionResult with the values provided.

RedirectToActionResult(String, String, Object, Boolean, Boolean) RedirectToActionResult(String, String, Object, Boolean, Boolean) RedirectToActionResult(String, String, Object, Boolean, Boolean)

Initializes a new instance of the RedirectToActionResult with the values provided.

RedirectToActionResult(String, String, Object, Boolean, String) RedirectToActionResult(String, String, Object, Boolean, String) RedirectToActionResult(String, String, Object, Boolean, String)

Initializes a new instance of the RedirectToActionResult with the values provided.

RedirectToActionResult(String, String, Object, Boolean, Boolean, String) RedirectToActionResult(String, String, Object, Boolean, Boolean, String) RedirectToActionResult(String, String, Object, Boolean, Boolean, String)

Initializes a new instance of the RedirectToActionResult with the values provided.

Properties

ActionName ActionName ActionName

Gets or sets the name of the action to use for generating the URL.

ControllerName ControllerName ControllerName

Gets or sets the name of the controller to use for generating the URL.

Fragment Fragment Fragment

Gets or sets the fragment to add to the URL.

Permanent Permanent Permanent

Gets or sets an indication that the redirect is permanent.

PreserveMethod PreserveMethod PreserveMethod

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

RouteValues RouteValues RouteValues

Gets or sets the route data to use for generating the URL.

UrlHelper UrlHelper UrlHelper

Gets or sets the IUrlHelper used to generate URLs.

Methods

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

Applies to