DefaultViewComponentInvoker.InvokeAsync(ViewComponentContext) 方法

定义

执行 由 ViewComponentDescriptorcontext 指定的视图组件,并将结果写入 Writer

public:
 virtual 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
override this.InvokeAsync : Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext -> System.Threading.Tasks.Task
Public Function InvokeAsync (context As ViewComponentContext) As Task

参数

返回

一个 Task ,它表示执行的异步操作。

实现

适用于