API:FireDAC.Stan.Util.TFDFileStream.Destroy

From RAD Studio API Documentation

Delphi

destructor Destroy; override;

C++

__fastcall virtual ~TFDFileStream(void);

Properties

Type Visibility Source Unit Parent
destructor public
FireDAC.Stan.Util.pas
FireDAC.Stan.Util.hpp
FireDAC.Stan.Util TFDFileStream

Description

Destroys an instance of TFileStream. {{#multireplace:FireDAC.Stan.Util.TFDFileStream.Destroy|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} inherits from {{#multireplace:System.Classes.TFileStream.Destroy|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}. All content below this line refers to {{#multireplace:System.Classes.TFileStream.Destroy|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}.

Destroys an instance of TFileStream.

Do not call Destroy directly in an application. Instead, call Free, which checks that the TFileStream reference is not nil and only then calls Destroy.

Destroy closes the Handle for the file stream before freeing the object.

See Also