IViewComponentResult.ExecuteAsync(ViewComponentContext) 方法

定義

使用指定的 context ,以非同步方式執行 的結果 ViewComponent

public:
 System::Threading::Tasks::Task ^ ExecuteAsync(Microsoft::AspNetCore::Mvc::ViewComponents::ViewComponentContext ^ context);
public System.Threading.Tasks.Task ExecuteAsync (Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext context);
abstract member ExecuteAsync : Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext -> System.Threading.Tasks.Task
Public Function ExecuteAsync (context As ViewComponentContext) As Task

參數

context
ViewComponentContext

ViewComponentContext目前元件執行的 。

傳回

Task 表示非同步執行。

適用於