EmptyResult 類別

定義

表示 ActionResult 執行時不會執行任何動作的 。

public ref class EmptyResult : Microsoft::AspNetCore::Mvc::ActionResult
public class EmptyResult : Microsoft.AspNetCore.Mvc.ActionResult
type EmptyResult = class
    inherit ActionResult
Public Class EmptyResult
Inherits ActionResult
繼承
EmptyResult

建構函式

EmptyResult()

表示 ActionResult 執行時不會執行任何動作的 。

方法

ExecuteResult(ActionContext)

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

ExecuteResultAsync(ActionContext)

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

(繼承來源 ActionResult)

適用於