TagHelper.ProcessAsync(TagHelperContext, TagHelperOutput) 方法

定義

使用指定的 contextoutput 以非同步方式執行 TagHelper

public:
 virtual System::Threading::Tasks::Task ^ ProcessAsync(Microsoft::AspNetCore::Razor::TagHelpers::TagHelperContext ^ context, Microsoft::AspNetCore::Razor::TagHelpers::TagHelperOutput ^ output);
public virtual System.Threading.Tasks.Task ProcessAsync (Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput output);
abstract member ProcessAsync : Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext * Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput -> System.Threading.Tasks.Task
override this.ProcessAsync : Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext * Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput -> System.Threading.Tasks.Task
Public Overridable Function ProcessAsync (context As TagHelperContext, output As TagHelperOutput) As Task

參數

context
TagHelperContext

包含與目前 HTML 標籤相關聯的資訊。

output
TagHelperOutput

用來產生 HTML 標籤的具狀態 HTML 專案。

傳回

完成 Task 時更新 的 output

實作

備註

根據預設,這會呼叫 Process(TagHelperContext, TagHelperOutput)

適用於