TagHelperScopeManager.Begin(String, TagMode, String, Func<Task>) 方法

定义

启动范围 TagHelperExecutionContext

public:
 Microsoft::AspNetCore::Razor::Runtime::TagHelpers::TagHelperExecutionContext ^ Begin(System::String ^ tagName, Microsoft::AspNetCore::Razor::TagHelpers::TagMode tagMode, System::String ^ uniqueId, Func<System::Threading::Tasks::Task ^> ^ executeChildContentAsync);
public Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext Begin (string tagName, Microsoft.AspNetCore.Razor.TagHelpers.TagMode tagMode, string uniqueId, Func<System.Threading.Tasks.Task> executeChildContentAsync);
member this.Begin : string * Microsoft.AspNetCore.Razor.TagHelpers.TagMode * string * Func<System.Threading.Tasks.Task> -> Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext
Public Function Begin (tagName As String, tagMode As TagMode, uniqueId As String, executeChildContentAsync As Func(Of Task)) As TagHelperExecutionContext

参数

tagName
String

与范围关联的 HTML 标记名称。

tagMode
TagMode

Razor 源中 元素的 HTML 语法。

uniqueId
String

此范围所针对的 HTML 元素的唯一标识符。

executeChildContentAsync
Func<Task>

用于异步执行子内容的委托。

返回

要使用的 TagHelperExecutionContext

适用于