VistaDB 5






VistaDB.Provider Namespace > VistaDBConnection Class > VistaDBConnection Constructor : VistaDBConnection Constructor(IVistaDBDatabase)
IVistaDBDatabase instance used for this connection.
VistaDBConnection Constructor(IVistaDBDatabase)
Initializes a new instance of VistaDBConnection class with given IVistaDBDatabase instance. When connection is closed, database stays opened. In order to close the database you have to call Close method of respective IVistaDBDatabase instance.
Syntax
'Declaration
 
Public Function New( _
   ByVal database As IVistaDBDatabase _
)
'Usage
 
Dim database As IVistaDBDatabase
 
Dim instance As New VistaDBConnection(database)
public VistaDBConnection( 
   IVistaDBDatabase database
)
public VistaDBConnection( 
    database: IVistaDBDatabase
); 
public function VistaDBConnection( 
   database : IVistaDBDatabase
);
public: VistaDBConnection( 
   IVistaDBDatabase* database
)
public:
VistaDBConnection( 
   IVistaDBDatabase^ database
)

Parameters

database
IVistaDBDatabase instance used for this 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