ControllerBase.RedirectToRoutePreserveMethod(String, Object, String) Method

Definition

Redirects (Status307TemporaryRedirect) to the specified route with Permanent set to false and PreserveMethod set to true, using the specified routeName, routeValues, and fragment.

[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePreserveMethod (string routeName = default, object routeValues = default, string fragment = default);
abstract member RedirectToRoutePreserveMethod : string * obj * string -> Microsoft.AspNetCore.Mvc.RedirectToRouteResult
override this.RedirectToRoutePreserveMethod : string * obj * string -> Microsoft.AspNetCore.Mvc.RedirectToRouteResult
Public Overridable Function RedirectToRoutePreserveMethod (Optional routeName As String = null, Optional routeValues As Object = null, Optional fragment As String = null) As RedirectToRouteResult

Parameters

routeName
String

The name of the route.

routeValues
Object

The route data to use for generating the URL.

fragment
String

The fragment to add to the URL.

Returns

RedirectToRouteResult

The created RedirectToRouteResult for the response.

Attributes

Applies to