API:Datasnap.Win.SConnect.TWebConnection.Destroy
Delphi
destructor Destroy; override;
C++
__fastcall virtual ~TWebConnection(void);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
destructor | public | Datasnap.Win.SConnect.pas Datasnap.Win.SConnect.hpp |
Datasnap.Win.SConnect | TWebConnection |
Description
Disposes of a TStreamedConnection instance.
Datasnap.Win.SConnect.TWebConnection.Destroy inherits from Datasnap.Win.SConnect.TStreamedConnection.Destroy. All content below this line refers to Datasnap.Win.SConnect.TStreamedConnection.Destroy.
Disposes of a TStreamedConnection instance.
Do not call Destroy directly in an application. Instead, call Free. Free verifies that the streamed connection is not nil, and only then calls Destroy.
Destroy ensures that the connection to the server is closed. It then frees all resources and helper objects before calling the inherited destructor.