CloseFileEx Method
Closes a cached file, specifying flushing and purging behaviors explicitly.
Syntax
Remarks
This method closes the cached file identified by FileId, performing any flushing and/or purging operations specified by the FlushAction and PurgeAction parameters.
The FlushAction parameter must be passed one of the following values:
FLUSH_DELAYED | 0 | Flush as usual, taking into account any specified delay.
The FlushAfterCloseDelay property specifies the delay. Passing this value to Close or CloseFileEx will cause the method to return immediately; flushing is performed in background. |
FLUSH_NONE | 1 | Do not flush anything. |
FLUSH_IMMEDIATE | 2 | Flush immediately.
Passing this value to Close or CloseFileEx will cause the method to return only after all flushing operations are complete. |
The PurgeAction parameter must be passed one of the following values:
PURGE_DELAYED | 0 | Purge as usual, taking into account any specified delay.
The PurgeAfterCloseDelay property specifies the delay. Passing this value to Close or CloseFileEx will cause the method to return immediately; purging is performed in background. |
PURGE_NONE | 1 | Do not purge anything. |
PURGE_IMMEDIATE | 2 | Purge immediately.
Passing this value to Close or CloseFileEx will cause the method to return only after all purging operations are complete. |
This method returns immediately, any flushing and/or purging operations are performed in the background.