Topic Path: Symbol Reference > Classes > TIdAttachmentFile Class > TIdAttachmentFile Methods > Destroy Destructor
TIdAttachmentFile.Destroy Destructor

Frees the object instance from the message parts collection.

destructor Destroy; override;

Destroy is the destructor for the object instance and frees the collection item from the message parts collection. 

When FileIsTempFile contains True, Destroy will permanently delete the file indicated by the StoredPathName property. 

Destroy calls the inherited destructor prior to exiting from the method.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.