共用方式為


ViewComponentResultExecutor.ExecuteAsync 方法

定義

藉由修改 HttpResponse ,以非同步方式執行動作結果。

public:
 virtual System::Threading::Tasks::Task ^ ExecuteAsync(Microsoft::AspNetCore::Mvc::ActionContext ^ context, Microsoft::AspNetCore::Mvc::ViewComponentResult ^ result);
public virtual System.Threading.Tasks.Task ExecuteAsync (Microsoft.AspNetCore.Mvc.ActionContext context, Microsoft.AspNetCore.Mvc.ViewComponentResult result);
abstract member ExecuteAsync : Microsoft.AspNetCore.Mvc.ActionContext * Microsoft.AspNetCore.Mvc.ViewComponentResult -> System.Threading.Tasks.Task
override this.ExecuteAsync : Microsoft.AspNetCore.Mvc.ActionContext * Microsoft.AspNetCore.Mvc.ViewComponentResult -> System.Threading.Tasks.Task
Public Overridable Function ExecuteAsync (context As ActionContext, result As ViewComponentResult) As Task

參數

context
ActionContext

ActionContext與目前要求相關聯的 。/>

result
ViewComponentResult

要執行的動作結果。

傳回

Task 表示非同步作業。

實作

適用於