TagHelperOutput.Attributes Propiedad

Definición

Atributos del elemento HTML.

public:
 property Microsoft::AspNetCore::Razor::TagHelpers::TagHelperAttributeList ^ Attributes { Microsoft::AspNetCore::Razor::TagHelpers::TagHelperAttributeList ^ get(); };
public Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttributeList Attributes { get; }
member this.Attributes : Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttributeList
Public ReadOnly Property Attributes As TagHelperAttributeList

Valor de propiedad

TagHelperAttributeList

Comentarios

MVC codificará String valores HTML al generar la etiqueta de inicio. No codificará HTML una instancia de Microsoft.AspNetCore.Mvc.Rendering.HtmlString . MVC convierte la mayoría de los demás tipos en un Stringobjeto y, a continuación, HTML codifica el resultado.

Se aplica a