Partager via


HtmlTag.AddAttribute, méthode

Ajoute un attribut à la collection HtmlTag.

Espace de noms :  Microsoft.VisualStudio.TestTools.WebTesting
Assembly :  Microsoft.VisualStudio.QualityTools.WebTestFramework (dans Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

Syntaxe

'Déclaration
Public Sub AddAttribute ( _
    attribute As HtmlAttribute _
)
public void AddAttribute(
    HtmlAttribute attribute
)
public:
void AddAttribute(
    HtmlAttribute^ attribute
)
member AddAttribute : 
        attribute:HtmlAttribute -> unit 
public function AddAttribute(
    attribute : HtmlAttribute
)

Paramètres

Notes

La collection à laquelle l'attribut est ajouté est accessible à l'aide de la propriété Attributes.

Sécurité .NET Framework

Voir aussi

Référence

HtmlTag Classe

Microsoft.VisualStudio.TestTools.WebTesting, espace de noms