DbConnection.ConnectionString Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
When overridden in a derived class, gets or sets the string used to open the connection.
public:
abstract property System::String ^ ConnectionString { System::String ^ get(); void set(System::String ^ value); };
public abstract string ConnectionString { get; set; }
[System.ComponentModel.SettingsBindable(true)]
public abstract string ConnectionString { get; set; }
member this.ConnectionString : string with get, set
[<System.ComponentModel.SettingsBindable(true)>]
member this.ConnectionString : string with get, set
Public MustOverride Property ConnectionString As String
Property Value
The connection string used to establish the initial connection. The exact contents of the connection string depend on the specific data source for this connection. The default value is an empty string.
Implements
- Attributes
Remarks
The exact contents of the connection string depend on the specific data source for this connection. To determine which settings are valid, see the documentation for the specific type of connection that you are using.