SocketTools .NET Edition

MailMessage.CloseStore Method 

Close the current message storage file.

[Visual Basic]
Public Function CloseStore() As Boolean
[C#]
public bool CloseStore();

Return Value

This method returns a boolean value. If the method succeeds, the return value is true. If the method fails, the return value is false. To get extended error information, check the value of the LastError property.

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

MailMessage Class | SocketTools Namespace | OpenStore Method