ControllerBase.RedirectToPagePreserveMethod Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 = default, object routeValues = default, string fragment = default);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPagePreserveMethod (string pageName, string? pageHandler = default, object? routeValues = default, string? fragment = default);
[<Microsoft.AspNetCore.Mvc.NonAction>]
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 = Nothing, Optional routeValues As Object = Nothing, Optional fragment As String = Nothing) 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
The created RedirectToRouteResult for the response.
- Attributes