DataBindingAttribute 類別

更新:2007 年 11 月

包含定義 Web 測試之資料繫結屬性的資訊。此類別無法被繼承。

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

語法

<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple := True)> _
Public NotInheritable Class DataBindingAttribute _
    Inherits Attribute

Dim instance As DataBindingAttribute
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true)]
public sealed class DataBindingAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Class, AllowMultiple = true)]
public ref class DataBindingAttribute sealed : public Attribute
public final class DataBindingAttribute extends Attribute

備註

測試引擎會使用這個屬性指定資料繫結資訊的來源。

這個屬性可以套用至類別,並且可多次套用。如需如何使用屬性的詳細資訊,請參閱使用屬性擴充中繼資料

繼承階層架構

System.Object
  System.Attribute
    Microsoft.VisualStudio.TestTools.WebTesting.DataBindingAttribute

執行緒安全

這個型別的任何 Public static (在 Visual Basic 中為 Shared) 成員都具備執行緒安全。並非所有的執行個體成員都是安全執行緒。

請參閱

參考

DataBindingAttribute 成員

Microsoft.VisualStudio.TestTools.WebTesting 命名空間

其他資源

HOW TO:將資料繫結加入至 Web 要求

關於 Web 測試中的資料繫結