RedirectToPageResult Class

Definition

An ActionResult that returns a Found (302) or Moved Permanently (301) response with a Location header. Targets a registered route.

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

Constructors

RedirectToPageResult(String)

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

RedirectToPageResult(String, Object)

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

RedirectToPageResult(String, String)

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

RedirectToPageResult(String, String, Object)

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

RedirectToPageResult(String, String, Object, Boolean)

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

RedirectToPageResult(String, String, Object, Boolean, Boolean)

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

RedirectToPageResult(String, String, Object, Boolean, Boolean, String)

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

RedirectToPageResult(String, String, Object, Boolean, String)

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

RedirectToPageResult(String, String, Object, String)

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

Properties

Fragment

Gets or sets the fragment to add to the URL.

Host

Gets or sets the host name of the URL.

PageHandler

Gets or sets the page handler to redirect to.

PageName

Gets or sets the name of the page to route to.

Permanent

Gets or sets an indication that the redirect is permanent.

PreserveMethod

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

Protocol

Gets or sets the protocol for the URL, such as "http" or "https".

RouteValues

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

UrlHelper

Gets or sets the IUrlHelper used to generate URLs.

Methods

ExecuteResult(ActionContext)
Obsolete.

Executes the result operation of the action method synchronously. This method is called by MVC to process the result of an action method.

ExecuteResult(ActionContext)

Executes the result operation of the action method synchronously. This method is called by MVC to process the result of an action method.

(Inherited from ActionResult)
ExecuteResultAsync(ActionContext)

Executes the result operation of the action method asynchronously. This method is called by MVC to process the result of an action method.

ExecuteResultAsync(ActionContext)

Executes the result operation of the action method asynchronously. This method is called by MVC to process the result of an action method. The default implementation of this method calls the ExecuteResult(ActionContext) method and returns a completed task.

(Inherited from ActionResult)

Applies to