共用方式為


HtmlTag.Attributes 屬性

取得與 HTML 標記關聯的屬性集合。

命名空間:  Microsoft.VisualStudio.TestTools.WebTesting
組件:  Microsoft.VisualStudio.QualityTools.WebTestFramework (在 Microsoft.VisualStudio.QualityTools.WebTestFramework.dll 中)

語法

'宣告
Public ReadOnly Property Attributes As IList(Of HtmlAttribute)
public IList<HtmlAttribute> Attributes { get; }
public:
property IList<HtmlAttribute^>^ Attributes {
    IList<HtmlAttribute^>^ get ();
}
member Attributes : IList<HtmlAttribute> with get
function get Attributes () : IList<HtmlAttribute>

屬性值

型別:System.Collections.Generic.IList<HtmlAttribute>
IList<T> 物件。

備註

IList<T> 物件會具有型別為 string 的參數,以及針對其索引鍵/值組定義的 HtmlAttribute

.NET Framework 安全性

請參閱

參考

HtmlTag 類別

Microsoft.VisualStudio.TestTools.WebTesting 命名空間