DataSourceAttribute.ConnectionString 屬性

取得值,這個值表示資料來源的連接字串。

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

語法

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

屬性值

型別:System.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