DataSourceAttribute.ConnectionString Property

Gets a value representing the connection string for the data source.

Namespace:  Microsoft.VisualStudio.TestTools.UnitTesting
Assembly:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

Syntax

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

Property Value

Type: String
The connection string used to access the data source.

Remarks

To set this attribute property, see How to: Configure a Data-Driven Unit Test.

.NET Framework Security

See Also

Reference

DataSourceAttribute Class

Microsoft.VisualStudio.TestTools.UnitTesting Namespace

Other Resources

How to: Configure a Data-Driven Unit Test