TagHelperScopeManager.Begin(String, TagMode, String, Func<Task>) Método

Definición

Inicia un TagHelperExecutionContext ámbito.

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

Parámetros

tagName
String

Nombre de etiqueta HTML al que está asociado el ámbito.

tagMode
TagMode

Sintaxis HTML del elemento en el origen de Razor.

uniqueId
String

Identificador único para el elemento HTML para el que se usa este ámbito.

executeChildContentAsync
Func<Task>

Delegado usado para ejecutar el contenido secundario de forma asincrónica.

Devoluciones

TagHelperExecutionContext

que TagHelperExecutionContext se va a usar.

Se aplica a