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
[ConfigurationPropertyAttribute("connectionString", IsRequired = true)]
public string ConnectionString { get; set; }
[ConfigurationPropertyAttribute(L"connectionString", IsRequired = true)]
public:
property String^ ConnectionString {
    String^ get ();
    void set (String^ value);
}
[<ConfigurationPropertyAttribute("connectionString", IsRequired = true)>]
member ConnectionString : string with get, set
function get ConnectionString () : String 
function set ConnectionString (value : String)

Property Value

Type: String
A connection string.

.NET Framework Security

See Also

Reference

DataSourceElement Class

Microsoft.VisualStudio.TestTools.UnitTesting Namespace