Partilhar via


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

Definição

Inicia um TagHelperExecutionContext escopo.

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

O nome da marca HTML ao qual o escopo está associado.

tagMode
TagMode

Sintaxe HTML do elemento na origem Razor.

uniqueId
String

Um identificador exclusivo para o elemento HTML para o qual esse escopo serve.

executeChildContentAsync
Func<Task>

Um delegado usado para executar o conteúdo filho de forma assíncrona.

Retornos

Um TagHelperExecutionContext a ser usado.

Aplica-se a