Share via


HtmlTag.AddAttribute Method

Adds an attribute to the HtmlTag collection.

Namespace:  Microsoft.VisualStudio.TestTools.WebTesting
Assembly:  Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

Syntax

'Declaration
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
)

Parameters

Remarks

The collection to which the attribute is added is accessible by using the Attributes property.

.NET Framework Security

See Also

Reference

HtmlTag Class

Microsoft.VisualStudio.TestTools.WebTesting Namespace