Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- attribute
Type: Microsoft.VisualStudio.TestTools.WebTesting.HtmlAttribute
The HtmlAttribute to add to the collection.
Remarks
The collection to which the attribute is added is accessible by using the Attributes property.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.