RedirectToActionResult 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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 的片段。