ControllerBase.RedirectToActionPreserveMethod(String, String, Object, String) ControllerBase.RedirectToActionPreserveMethod(String, String, Object, String) ControllerBase.RedirectToActionPreserveMethod(String, String, Object, String) 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 = null, string controllerName = null, object routeValues = null, string fragment = null);
abstract member RedirectToActionPreserveMethod : string * string * obj * string -> Microsoft.AspNetCore.Mvc.RedirectToActionResult
override this.RedirectToActionPreserveMethod : string * string * obj * string -> Microsoft.AspNetCore.Mvc.RedirectToActionResult
Public Overridable Function RedirectToActionPreserveMethod (Optional actionName As String = null, Optional controllerName As String = null, Optional routeValues As Object = null, Optional fragment As String = null) As RedirectToActionResult

Parameters

actionName
String String String

The name of the action.

controllerName
String String String

The name of the controller.

routeValues
Object Object Object

The route data to use for generating the URL.

fragment
String String String

The fragment to add to the URL.

Returns

Applies to