RedirectToActionResult 构造函数

定义

重载

RedirectToActionResult(String, String, Object)

使用提供的值初始化 的新实例 RedirectToActionResult

RedirectToActionResult(String, String, Object, Boolean)

使用提供的值初始化 的新实例 RedirectToActionResult

RedirectToActionResult(String, String, Object, String)

使用提供的值初始化 的新实例 RedirectToActionResult

RedirectToActionResult(String, String, Object, Boolean, Boolean)

使用提供的值初始化 的新实例 RedirectToActionResult

RedirectToActionResult(String, String, Object, Boolean, String)

使用提供的值初始化 的新实例 RedirectToActionResult

RedirectToActionResult(String, String, Object, Boolean, Boolean, String)

使用提供的值初始化 的新实例 RedirectToActionResult

RedirectToActionResult(String, String, Object)

使用提供的值初始化 的新实例 RedirectToActionResult

public:
 RedirectToActionResult(System::String ^ actionName, System::String ^ controllerName, System::Object ^ routeValues);
public RedirectToActionResult (string actionName, string controllerName, object routeValues);
public RedirectToActionResult (string? actionName, string? controllerName, object? routeValues);
new Microsoft.AspNetCore.Mvc.RedirectToActionResult : string * string * obj -> Microsoft.AspNetCore.Mvc.RedirectToActionResult
Public Sub New (actionName As String, controllerName As String, routeValues As Object)

参数

actionName
String

用于生成 URL 的操作的名称。

controllerName
String

用于生成 URL 的控制器的名称。

routeValues
Object

用于生成 URL 的路由数据。

适用于

RedirectToActionResult(String, String, Object, Boolean)

使用提供的值初始化 的新实例 RedirectToActionResult

public:
 RedirectToActionResult(System::String ^ actionName, System::String ^ controllerName, System::Object ^ routeValues, bool permanent);
public RedirectToActionResult (string actionName, string controllerName, object routeValues, bool permanent);
public RedirectToActionResult (string? actionName, string? controllerName, object? routeValues, bool permanent);
new Microsoft.AspNetCore.Mvc.RedirectToActionResult : string * string * obj * bool -> Microsoft.AspNetCore.Mvc.RedirectToActionResult
Public Sub New (actionName As String, controllerName As String, routeValues As Object, permanent As Boolean)

参数

actionName
String

用于生成 URL 的操作的名称。

controllerName
String

用于生成 URL 的控制器的名称。

routeValues
Object

用于生成 URL 的路由数据。

permanent
Boolean

如果设置为 true,则使重定向永久 (301) 。 否则,将使用临时重定向 (302) 。

适用于

RedirectToActionResult(String, String, Object, String)

使用提供的值初始化 的新实例 RedirectToActionResult

public:
 RedirectToActionResult(System::String ^ actionName, System::String ^ controllerName, System::Object ^ routeValues, System::String ^ fragment);
public RedirectToActionResult (string actionName, string controllerName, object routeValues, string fragment);
public RedirectToActionResult (string? actionName, string? controllerName, object? routeValues, string? fragment);
new Microsoft.AspNetCore.Mvc.RedirectToActionResult : string * string * obj * string -> Microsoft.AspNetCore.Mvc.RedirectToActionResult
Public Sub New (actionName As String, controllerName As String, routeValues As Object, fragment As String)

参数

actionName
String

用于生成 URL 的操作的名称。

controllerName
String

用于生成 URL 的控制器的名称。

routeValues
Object

用于生成 URL 的路由数据。

fragment
String

要添加到 URL 的片段。

适用于

RedirectToActionResult(String, String, Object, Boolean, Boolean)

使用提供的值初始化 的新实例 RedirectToActionResult

public:
 RedirectToActionResult(System::String ^ actionName, System::String ^ controllerName, System::Object ^ routeValues, bool permanent, bool preserveMethod);
public RedirectToActionResult (string actionName, string controllerName, object routeValues, bool permanent, bool preserveMethod);
public RedirectToActionResult (string? actionName, string? controllerName, object? routeValues, bool permanent, bool preserveMethod);
new Microsoft.AspNetCore.Mvc.RedirectToActionResult : string * string * obj * bool * bool -> Microsoft.AspNetCore.Mvc.RedirectToActionResult
Public Sub New (actionName As String, controllerName As String, routeValues As Object, permanent As Boolean, preserveMethod As Boolean)

参数

actionName
String

用于生成 URL 的操作的名称。

controllerName
String

用于生成 URL 的控制器的名称。

routeValues
Object

用于生成 URL 的路由数据。

permanent
Boolean

如果设置为 true,则使重定向永久 (301) 。 否则,将使用临时重定向 (302) 。

preserveMethod
Boolean

如果设置为 true,则使临时重定向 (307) 或永久重定向 (308) 保留初始请求方法。

适用于

RedirectToActionResult(String, String, Object, Boolean, String)

使用提供的值初始化 的新实例 RedirectToActionResult

public:
 RedirectToActionResult(System::String ^ actionName, System::String ^ controllerName, System::Object ^ routeValues, bool permanent, System::String ^ fragment);
public RedirectToActionResult (string actionName, string controllerName, object routeValues, bool permanent, string fragment);
public RedirectToActionResult (string? actionName, string? controllerName, object? routeValues, bool permanent, string? fragment);
new Microsoft.AspNetCore.Mvc.RedirectToActionResult : string * string * obj * bool * string -> Microsoft.AspNetCore.Mvc.RedirectToActionResult
Public Sub New (actionName As String, controllerName As String, routeValues As Object, permanent As Boolean, fragment As String)

参数

actionName
String

用于生成 URL 的操作的名称。

controllerName
String

用于生成 URL 的控制器的名称。

routeValues
Object

用于生成 URL 的路由数据。

permanent
Boolean

如果设置为 true,则使重定向永久 (301) 。 否则,将使用临时重定向 (302) 。

fragment
String

要添加到 URL 的片段。

适用于

RedirectToActionResult(String, String, Object, Boolean, Boolean, String)

使用提供的值初始化 的新实例 RedirectToActionResult

public:
 RedirectToActionResult(System::String ^ actionName, System::String ^ controllerName, System::Object ^ routeValues, bool permanent, bool preserveMethod, System::String ^ fragment);
public RedirectToActionResult (string actionName, string controllerName, object routeValues, bool permanent, bool preserveMethod, string fragment);
public RedirectToActionResult (string? actionName, string? controllerName, object? routeValues, bool permanent, bool preserveMethod, string? fragment);
new Microsoft.AspNetCore.Mvc.RedirectToActionResult : string * string * obj * bool * bool * string -> Microsoft.AspNetCore.Mvc.RedirectToActionResult
Public Sub New (actionName As String, controllerName As String, routeValues As Object, permanent As Boolean, preserveMethod As Boolean, fragment As String)

参数

actionName
String

用于生成 URL 的操作的名称。

controllerName
String

用于生成 URL 的控制器的名称。

routeValues
Object

用于生成 URL 的路由数据。

permanent
Boolean

如果设置为 true,则使重定向永久 (301) 。 否则,将使用临时重定向 (302) 。

preserveMethod
Boolean

如果设置为 true,则使临时重定向 (307) 和永久重定向 (308) 保留初始请求方法。

fragment
String

要添加到 URL 的片段。

适用于