RedirectToActionResult 類別

定義

ActionResult 傳回 Found (302) 、已永久移動 (301) 、暫時重新導向 (307) ,或具有 Location 標頭的永久重新導向 (308) 回應。 以控制器動作為目標。

public ref class RedirectToActionResult : Microsoft::AspNetCore::Mvc::ActionResult, Microsoft::AspNetCore::Mvc::IActionResult, Microsoft::AspNetCore::Mvc::ViewFeatures::IKeepTempDataResult
public class RedirectToActionResult : Microsoft.AspNetCore.Mvc.ActionResult, Microsoft.AspNetCore.Mvc.IActionResult, Microsoft.AspNetCore.Mvc.ViewFeatures.IKeepTempDataResult
type RedirectToActionResult = class
    inherit ActionResult
    interface IKeepTempDataResult
    interface IActionResult
type RedirectToActionResult = class
    inherit ActionResult
    interface IActionResult
    interface IKeepTempDataResult
Public Class RedirectToActionResult
Inherits ActionResult
Implements IActionResult, IKeepTempDataResult
繼承
RedirectToActionResult
實作

建構函式

RedirectToActionResult(String, String, Object)

使用所提供的值,初始化 的新實例 RedirectToActionResult

RedirectToActionResult(String, String, Object, Boolean)

使用所提供的值,初始化 的新實例 RedirectToActionResult

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

使用所提供的值,初始化 的新實例 RedirectToActionResult

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

使用所提供的值,初始化 的新實例 RedirectToActionResult

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

使用所提供的值,初始化 的新實例 RedirectToActionResult

RedirectToActionResult(String, String, Object, String)

使用所提供的值,初始化 的新實例 RedirectToActionResult

屬性

ActionName

取得或設定要用於產生 URL 的動作名稱。

ControllerName

取得或設定用來產生 URL 的控制器名稱。

Fragment

取得或設定要加入至 URL 的片段。

Permanent

取得或設定指出重新導向是永久的。

PreserveMethod

取得或設定重新導向會保留初始要求方法的指示。

RouteValues

取得或設定用來產生 URL 的路由資料。

UrlHelper

取得或設定 IUrlHelper 用來產生 URL 的 。

方法

ExecuteResult(ActionContext)
已淘汰.

同步執行動作方法的結果作業。 MVC 會呼叫這個方法來處理動作方法的結果。

ExecuteResult(ActionContext)

同步執行動作方法的結果作業。 MVC 會呼叫這個方法來處理動作方法的結果。

(繼承來源 ActionResult)
ExecuteResultAsync(ActionContext)

以非同步方式執行動作方法的結果作業。 MVC 會呼叫這個方法來處理動作方法的結果。

ExecuteResultAsync(ActionContext)

以非同步方式執行動作方法的結果作業。 MVC 會呼叫這個方法來處理動作方法的結果。 此方法的預設實作會呼叫 ExecuteResult(ActionContext) 方法,並傳回已完成的工作。

(繼承來源 ActionResult)

適用於