Share via


ControllerBase.RedirectToActionPreserveMethod Method

Definition

Redirects (Status307TemporaryRedirect) to the specified action with Permanent set to false and PreserveMethod set to true, using the specified actionName, controllerName, routeValues, and fragment.

[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToActionPreserveMethod(string? actionName = default, string? controllerName = default, object? routeValues = default, string? fragment = default);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToActionPreserveMethod(string actionName = default, string controllerName = default, object routeValues = default, string fragment = default);

Parameters

actionName
String

The name of the action.

controllerName
String

The name of the controller.

routeValues
Object

The route data to use for generating the URL.

fragment
String

The fragment to add to the URL.

Returns

The created RedirectToActionResult for the response.

Attributes

Applies to