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
attribute
Type: Microsoft.VisualStudio.TestTools.WebTesting.HtmlAttributeThe 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.