AcceptedAtActionResult 類別

定義

ActionResult 傳回具有 Location 標頭的 Accepted (202) 回應。

public ref class AcceptedAtActionResult : Microsoft::AspNetCore::Mvc::ObjectResult
public class AcceptedAtActionResult : Microsoft.AspNetCore.Mvc.ObjectResult
[Microsoft.AspNetCore.Mvc.Infrastructure.DefaultStatusCode(202)]
public class AcceptedAtActionResult : Microsoft.AspNetCore.Mvc.ObjectResult
type AcceptedAtActionResult = class
    inherit ObjectResult
[<Microsoft.AspNetCore.Mvc.Infrastructure.DefaultStatusCode(202)>]
type AcceptedAtActionResult = class
    inherit ObjectResult
Public Class AcceptedAtActionResult
Inherits ObjectResult
繼承
AcceptedAtActionResult
屬性

建構函式

AcceptedAtActionResult(String, String, Object, Object)

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

屬性

ActionName

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

ContentTypes

取得或設定 MediaTypeCollection

(繼承來源 ObjectResult)
ControllerName

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

DeclaredType

取得或設定宣告的類型。

(繼承來源 ObjectResult)
Formatters

IOutputFormatter 集合。

(繼承來源 ObjectResult)
RouteValues

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

StatusCode

取得或設定 HTTP 狀態碼。

(繼承來源 ObjectResult)
UrlHelper

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

Value

物件結果。

(繼承來源 ObjectResult)

方法

ExecuteResult(ActionContext)

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

(繼承來源 ActionResult)
ExecuteResultAsync(ActionContext)

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

(繼承來源 ObjectResult)
OnFormatting(ActionContext)

這個方法會在格式器寫入輸出資料流程之前呼叫。

適用於