TagHelperScopeManager.Begin(String, TagMode, String, Func<Task>) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
启动范围 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 元素的唯一标识符。
返回
要使用的 TagHelperExecutionContext 。
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈