DataSourceElement.ConnectionString Property
Gets or sets the connection string setting element in the <connectionStrings> section in the app.config file.
Namespace: Microsoft.VisualStudio.TestTools.UnitTesting
Assembly: Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)
Syntax
'Declaration
<ConfigurationPropertyAttribute("connectionString", IsRequired := True)> _
Public Property ConnectionString As String
'Usage
Dim instance As DataSourceElement
Dim value As String
value = instance.ConnectionString
instance.ConnectionString = value
[ConfigurationPropertyAttribute("connectionString", IsRequired = true)]
public string ConnectionString { get; set; }
[ConfigurationPropertyAttribute(L"connectionString", IsRequired = true)]
public:
property String^ ConnectionString {
String^ get ();
void set (String^ value);
}
public function get ConnectionString () : String
public function set ConnectionString (value : String)
Property Value
Type: System.String
A connection string.
.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.