Επεξεργασία

Κοινή χρήση μέσω


DbConnection.ConnectionString Property

Definition

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.

Applies to

See also