Share via


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: String

    The 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

See Also

Reference

HtmlTag Class

Microsoft.VisualStudio.TestTools.WebTesting Namespace