ControllerBase.RedirectToPagePermanentPreserveMethod(String, String, Object, String) Method

Definition

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

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

Parameters

pageName
String

The name of the page.

pageHandler
String

The page handler to redirect to.

routeValues
Object

The route data to use for generating the URL.

fragment
String

The fragment to add to the URL.

Returns

RedirectToPageResult

The created RedirectToRouteResult for the response.

Attributes

Applies to