ConnectionString Property (VistaDBConnection)
In This Topic
Gets or sets the string used to open the connection.Gets or sets the string used to open the connection.
Syntax
'Declaration
Public Overrides NotOverridable Property ConnectionString As System.String
'Usage
Dim instance As VistaDBConnection
Dim value As System.String
instance.ConnectionString = value
value = instance.ConnectionString
public override System.string ConnectionString {get; set;}
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.
Example
The following example creates a VistaDBConnection and sets the ConnectionString property before opening the connection.
public VistaDBConnection
OpenConnection()
{
string connectionString = @"Data Source = 'C:\VistaDB.vdb6'; Open Mode = ExclusiveReadWrite";
VistaDBConnection connection = new VistaDBConnection(connectionString);
connection.Open();
return connection;
}
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also
Reference
VistaDBConnection Class
VistaDBConnection Members
Class VistaDBConnection
Class VistaDBConnectionStringBuilder