共用方式為


DataSourceAttribute.TableName 屬性

取得值,這個值表示提供資料的資料表名稱。

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

語法

'宣告
Public ReadOnly Property TableName As String
public string TableName { get; }
public:
property String^ TableName {
    String^ get ();
}
member TableName : string with get
function get TableName () : String

屬性值

類型:String
提供資料以進行測試的資料表名稱。

備註

若要設定這個屬性 (Attribute) 的屬性 (Property),請參閱 How to: Configure a Data-Driven Unit Test

.NET Framework 安全性

請參閱

參考

DataSourceAttribute 類別

Microsoft.VisualStudio.TestTools.UnitTesting 命名空間

其他資源

How to: Configure a Data-Driven Unit Test