FireDAC.Phys.MongoDBWrapper.TMongoDatabase.FreeHandle

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure FreeHandle; override;

C++

virtual void __fastcall FreeHandle();

Properties

Type Visibility Source Unit Parent
procedure
function
protected
FireDAC.Phys.MongoDBWrapper.pas
FireDAC.Phys.MongoDBWrapper.hpp
FireDAC.Phys.MongoDBWrapper TMongoDatabase

Description

Clears the existing handle, and optionally releases the API handle, when it is owned by this object.

FireDAC.Phys.MongoDBWrapper.TMongoDatabase.FreeHandle inherits from FireDAC.Phys.MongoDBWrapper.TMongoObject.FreeHandle. All content below this line refers to FireDAC.Phys.MongoDBWrapper.TMongoObject.FreeHandle.

Clears the existing handle, and optionally releases the API handle, when it is owned by this object.

The FreeHandle method is virtual and can be overridden in the derived classes. To release the MongoDB API handle, the FreeHandle method internally calls InternalFreeHandle, when this object owns the handle. After this, the Handle property is set to nil. The FreeHandle method is called automatically by the object destructor or each time when a new value is assigned to Handle.

See Also