CloseStore Method  
 

Close the current message storage file.

Syntax

object.CloseStore

Parameters

None.

Return Value

A value of zero is returned if the action was successful. Otherwise, a non-zero error code is returned which indicates the cause of the failure.

Remarks

The CloseStore method closes the storage file that was previously opened, releasing all of the memory allocated for the message store and purging all deleted messages. This method must be called when the application has finished accessing the messages in the message store.

When the control instance is released by its container, the storage file will automatically be closed. To prevent deleted messages from being removed from the message store, use the Reset method.

See Also

StoreFile Property, OpenStore Method, PurgeStore Method, ReadStore Method, WriteStore Method