PageBase.RedirectToActionPermanentPreserveMethod 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 (Status308PermanentRedirect) to the specified action with
Permanent set to true and PreserveMethod
set to true, using the specified actionName
, controllerName
,
routeValues
, and fragment
.
public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToActionPermanentPreserveMethod (string actionName = default, string controllerName = default, object routeValues = default, string fragment = default);
public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToActionPermanentPreserveMethod (string? actionName = default, string? controllerName = default, object? routeValues = default, string? fragment = default);
abstract member RedirectToActionPermanentPreserveMethod : string * string * obj * string -> Microsoft.AspNetCore.Mvc.RedirectToActionResult
override this.RedirectToActionPermanentPreserveMethod : string * string * obj * string -> Microsoft.AspNetCore.Mvc.RedirectToActionResult
Public Overridable Function RedirectToActionPermanentPreserveMethod (Optional actionName As String = Nothing, Optional controllerName As String = Nothing, Optional routeValues As Object = Nothing, Optional fragment As String = Nothing) As RedirectToActionResult
Parameters
- actionName
- String
The name of the action.
- controllerName
- String
The name of the controller.
- routeValues
- Object
The route data to use for generating the URL.
- fragment
- String
The fragment to add to the URL.
Returns
The created RedirectToActionResult for the response.