VistaDB 5
Example 






Open Method
Opens a database connection with the settings specified by the ConnectionString.
Syntax
'Declaration
 
Public Overrides NotOverridable Sub Open() 
'Usage
 
Dim instance As VistaDBConnection
 
instance.Open()
public override void Open()
public procedure Open(); override; 
public override function Open();
public: void Open(); override 
public:
void Open(); override 
Remarks
By default the provider will attempt to open a connection from a connection pool object if one exists. This caching of connections can lead to increased performance, but may not be used with Exclusive Mode Connections.
Example
The following example creates and opens a VistaDBConnection.
public VistaDBConnection OpenConnection(string connectionString)
{
    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