Compartir a través de


TagHelperOutput Constructor

Definición

Crea una nueva instancia 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

Nombre de etiqueta del elemento HTML.

attributes
TagHelperAttributeList

Atributos HTML.

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

Delegado usado para ejecutar elementos secundarios de forma asincrónica con el especificado HtmlEncoder en el ámbito y devolver su contenido representado.

Se aplica a