PageBase.RedirectToActionPreserveMethod(String, String, Object, String) 方法

定义

使用 () 、、 和 ,将对象重定向到设置为 false 且设置为 true 的指定 Status307TemporaryRedirect Permanent PreserveMethod actionName controllerName routeValues 操作 fragment

public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToActionPreserveMethod (string actionName = default, string controllerName = default, object routeValues = default, string fragment = default);
public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToActionPreserveMethod (string? actionName = default, string? controllerName = default, object? routeValues = default, string? fragment = default);
abstract member RedirectToActionPreserveMethod : string * string * obj * string -> Microsoft.AspNetCore.Mvc.RedirectToActionResult
override this.RedirectToActionPreserveMethod : string * string * obj * string -> Microsoft.AspNetCore.Mvc.RedirectToActionResult
Public Overridable Function RedirectToActionPreserveMethod (Optional actionName As String = Nothing, Optional controllerName As String = Nothing, Optional routeValues As Object = Nothing, Optional fragment As String = Nothing) As RedirectToActionResult

参数

actionName
String

操作的名称。

controllerName
String

控制器的名称。

routeValues
Object

用于生成 URL 的路由数据。

fragment
String

要添加到 URL 的片段。

返回

RedirectToActionResult

RedirectToActionResult 响应创建的 。

适用于