RedirectToPageResult RedirectToPageResult RedirectToPageResult Class

Definition

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

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
Public Class RedirectToPageResult
Inherits ActionResult
Implements IActionResult, IKeepTempDataResult
Inheritance
RedirectToPageResultRedirectToPageResultRedirectToPageResult
Implements

Constructors

RedirectToPageResult(String) RedirectToPageResult(String) RedirectToPageResult(String)

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

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

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

RedirectToPageResult(String, String) RedirectToPageResult(String, String) RedirectToPageResult(String, String)

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

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

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

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

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

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

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

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

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

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

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

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

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

Properties

Fragment Fragment Fragment

Gets or sets the fragment to add to the URL.

Host Host Host

Gets or sets the host name of the URL.

PageHandler PageHandler PageHandler

Gets or sets the page handler to redirect to.

PageName PageName PageName

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

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.

Protocol Protocol Protocol

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

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