VistaDB 6
VistaDB.Provider Namespace / VistaDBConnection Class / VistaDBConnection Constructor


In This Topic
    VistaDBConnection Constructor
    In This Topic
    Overload List
    OverloadDescription
    Represents an open connection to a VistaDB database. This class cannot be inherited. It is considered a best practice to close the connection as soon as you are finished with it. Do NOT place the .Close() call in a Finalizer or object destructor. Both of those are non-deterministic (you cannot predict when or if they will be called). This leads to connection handle leaks over the lifetime of an application. Class VistaDBConnection VistaDBConnection.ClearAllPools VistaDBConnection.ClearPool  
    Initializes a new instance of the VistaDBConnection class when given a string that contains the connection string.

    It is considered a best practice to close the connection as soon as you are finished with it. Do NOT place the .Close() call in a Finalizer or object destructor. Both of those are non-deterministic (you cannot predict when or if they will be called). This leads to connection handle leaks over the lifetime of an application.

     
    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.  
    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