Share via


TagHelperOutput.Attributes Propriedade

Definição

Os atributos do 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 da propriedade

Comentários

O MVC codificará String valores HTML ao gerar a marca de início. Ele não codificará html em uma Microsoft.AspNetCore.Mvc.Rendering.HtmlString instância. O MVC converte a maioria dos outros tipos em um Stringe, em seguida, o HTML codifica o resultado.

Aplica-se a