Udostępnij za pośrednictwem


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
'Usage
Dim instance As DataSourceAttribute 
Dim value As String 

value = instance.ConnectionString
public string ConnectionString { get; }
public:
property String^ ConnectionString {
    String^ get ();
}
public function get ConnectionString () : String

Property Value

Type: System.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

DataSourceAttribute Members

Microsoft.VisualStudio.TestTools.UnitTesting Namespace