Compartir a través de


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

Comentarios

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

Se aplica a