WriteStore Method  
 

Store the current message in the message store.

Syntax

object.WriteStore

Parameters

None.

Return Value

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

Remarks

The WriteStore method will always append the current message to the storage file. If you want to replace a message in the message store, you should use the ReplaceMessage method. This method will update the value of the StoreIndex property to specify the message number for the new message that has been added to the storage file.

See Also

StoreCount Property, StoreFile Property, StoreIndex Property, CloseStore Method, DeleteMessage Method, FindMessage Method, ReadStore Method, ReplaceMessage Method