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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.