PageModel.RedirectToRoutePermanentPreserveMethod(String, Object, String) PageModel.RedirectToRoutePermanentPreserveMethod(String, Object, String) PageModel.RedirectToRoutePermanentPreserveMethod(String, Object, String) Method

Definition

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

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

Parameters

routeName
String String String

The name of the route.

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