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

Definition

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

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

Parameters

pageName
String String String

The name of the page.

pageHandler
String String String

The page handler to redirect to.

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