VistaDB 5






Close Method (VistaDBConnection)
Closes the connection to the database. It is considered a best practice to close the database connection as soon as you are finished with it. Putting the VistaDBConnection within a using() statement is the easiest way to ensure it is actively cleaned up fast. Do NOT place this call in an object destructor or Finalize call. That will lead to non-deterministic release of object handles and potential connection leaks. Class VistaDBConnection
Syntax
'Declaration
 
Public Overrides NotOverridable Sub Close() 
'Usage
 
Dim instance As VistaDBConnection
 
instance.Close()
public override void Close()
public procedure Close(); override; 
public override function Close();
public: void Close(); override 
public:
void Close(); override 
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