Soap.InvokeRegistry.TSOAPAttachment.CacheFile
Delphi
property CacheFile: string read FCacheFile;
C++
__property System::UnicodeString CacheFile = {read=FCacheFile};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | Soap.InvokeRegistry.pas Soap.InvokeRegistry.hpp |
Soap.InvokeRegistry | TSOAPAttachment |
Description
Identifies the temporary file where the attachment is saved.
CacheFile is set automatically when the application receives an attachment along with a SOAP message. This is the name of the temporary file where the application stores the contents of the attachment.
To save this temporary file to another file of your choosing, use the SaveToFile method. You can also save its contents to a stream, using the SaveToStream method.
The ContentType property indicates the format of the data in this temporary file.
By default, when the TSOAPAttachment object is freed, it deletes the temporary file that CacheFile indicates. Use the CacheFilePersist property to prevent this file from being deleted.