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

Definition

Starts a TagHelperExecutionContext scope.

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

Parameters

tagName
String

The HTML tag name that the scope is associated with.

tagMode
TagMode

HTML syntax of the element in the Razor source.

uniqueId
String

An identifier unique to the HTML element this scope is for.

executeChildContentAsync
Func<Task>

A delegate used to execute the child content asynchronously.

Returns

TagHelperExecutionContext

A TagHelperExecutionContext to use.

Applies to