IViewComponentInvoker.InvokeAsync(ViewComponentContext) 方法

定義

執行 所 ViewComponentDescriptorcontext 指定的檢視元件,並將結果寫入至 Writer

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

參數

傳回

Task 表示執行的非同步作業。

適用於