共用方式為


ContentViewComponentResult.ExecuteAsync(ViewComponentContext) 方法

定義

編碼和寫入 Content

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

參數

傳回

已完成 Task 的 。

實作

適用於