Data.Win.ADODB.TADOConnection.Destroy

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: destructor
Visibility: public
Source:
Data.Win.ADODB.pas
Data.Win.ADODB.hpp
Unit: Data.Win.ADODB
Parent: TADOConnection

Delphi

destructor Destroy; override;

C++

__fastcall virtual ~TADOConnection();

Description

Destroys the TADOConnection.

Do not call Destroy directly in an application. Instead, call Free. Free verifies that the ADO connection is not nil, and only then calls Destroy.

Destroy performs the following tasks:

  • Closes the connection.
  • Destroys its list of associated datasets.
  • Checks for unprocessed connection events.
  • Destroys its connection interface.
  • Calls the inherited destructor.

See Also