HtmlTag.GetAttributeValue Method
Gets the value of a specified attribute.
Namespace: Microsoft.VisualStudio.TestTools.WebTesting
Assembly: Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)
Syntax
'Declaration
Public Function GetAttributeValue ( _
attributeName As String _
) As HtmlAttribute
public HtmlAttribute GetAttributeValue(
string attributeName
)
public:
HtmlAttribute^ GetAttributeValue(
String^ attributeName
)
member GetAttributeValue :
attributeName:string -> HtmlAttribute
public function GetAttributeValue(
attributeName : String
) : HtmlAttribute
Parameters
attributeName
Type: StringThe name of the attribute. Used as the key to look up the attribute value.
Return Value
Type: Microsoft.VisualStudio.TestTools.WebTesting.HtmlAttribute
A HtmlAttribute object.
Remarks
If the key does not exist in the dictionary, this method returns nulla null reference (Nothing in Visual Basic).
.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.