TagHelperOutput.Attributes Propriété

Définition

Attributs de l’élément 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

Valeur de propriété

Remarques

MVC encodera String les valeurs HTML lors de la génération de la balise de début. Il n’encode pas au format HTML un Microsoft.AspNetCore.Mvc.Rendering.HtmlString instance. MVC convertit la plupart des autres types en , Stringpuis html encode le résultat.

S’applique à