Compartilhar via


TagHelperOutput Construtor

Definição

Cria uma instância de TagHelperOutput.

public:
 TagHelperOutput(System::String ^ tagName, Microsoft::AspNetCore::Razor::TagHelpers::TagHelperAttributeList ^ attributes, Func<bool, System::Text::Encodings::Web::HtmlEncoder ^, System::Threading::Tasks::Task<Microsoft::AspNetCore::Razor::TagHelpers::TagHelperContent ^> ^> ^ getChildContentAsync);
public TagHelperOutput (string tagName, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttributeList attributes, Func<bool,System.Text.Encodings.Web.HtmlEncoder,System.Threading.Tasks.Task<Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent>> getChildContentAsync);
new Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput : string * Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttributeList * Func<bool, System.Text.Encodings.Web.HtmlEncoder, System.Threading.Tasks.Task<Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent>> -> Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput
Public Sub New (tagName As String, attributes As TagHelperAttributeList, getChildContentAsync As Func(Of Boolean, HtmlEncoder, Task(Of TagHelperContent)))

Parâmetros

tagName
String

O nome da marca do elemento HTML.

attributes
TagHelperAttributeList

Os atributos HTML.

getChildContentAsync
Func<Boolean,HtmlEncoder,Task<TagHelperContent>>

Um delegado usado para executar filhos de forma assíncrona com o fornecido HtmlEncoder no escopo e retornar seu conteúdo renderizado.

Aplica-se a