Udostępnij za pośrednictwem


Metoda HtmlTag.GetAttributeValue —

Pobiera wartość określony atrybut.

Przestrzeń nazw:  Microsoft.VisualStudio.TestTools.WebTesting
Zestaw:  Microsoft.VisualStudio.QualityTools.WebTestFramework (w Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

Składnia

'Deklaracja
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

Parametry

  • attributeName
    Typ: String

    Nazwa atrybutu.Używane jako klucz, aby wyszukać wartość atrybutu.

Wartość zwracana

Typ: Microsoft.VisualStudio.TestTools.WebTesting.HtmlAttribute
A HtmlAttribute object.

Uwagi

Jeśli klucz nie istnieje w słowniku, ta metoda zwraca nullodwołanie o wartości null (Nothing w języku Visual Basic).

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

HtmlTag Klasa

Przestrzeń nazw Microsoft.VisualStudio.TestTools.WebTesting