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

属性值

类型:System.String
为测试提供数据的表名称。

备注

要设置该特性的属性,请参见 How to: Configure a Data-Driven Unit Test

.NET Framework 安全性

请参见

参考

DataSourceAttribute 类

Microsoft.VisualStudio.TestTools.UnitTesting 命名空间

其他资源

How to: Configure a Data-Driven Unit Test