RedirectToRouteResult RedirectToRouteResult RedirectToRouteResult 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 registered route.

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

Constructors

RedirectToRouteResult(Object) RedirectToRouteResult(Object) RedirectToRouteResult(Object)

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

RedirectToRouteResult(String, Object) RedirectToRouteResult(String, Object) RedirectToRouteResult(String, Object)

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

RedirectToRouteResult(String, Object, Boolean) RedirectToRouteResult(String, Object, Boolean) RedirectToRouteResult(String, Object, Boolean)

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

RedirectToRouteResult(String, Object, String) RedirectToRouteResult(String, Object, String) RedirectToRouteResult(String, Object, String)

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

RedirectToRouteResult(String, Object, Boolean, Boolean) RedirectToRouteResult(String, Object, Boolean, Boolean) RedirectToRouteResult(String, Object, Boolean, Boolean)

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

RedirectToRouteResult(String, Object, Boolean, String) RedirectToRouteResult(String, Object, Boolean, String) RedirectToRouteResult(String, Object, Boolean, String)

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

RedirectToRouteResult(String, Object, Boolean, Boolean, String) RedirectToRouteResult(String, Object, Boolean, Boolean, String) RedirectToRouteResult(String, Object, Boolean, Boolean, String)

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

Properties

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.

RouteName RouteName RouteName

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

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