SocketTools .NET Edition

MailMessage.WriteStore Method 

Store the current message in the message store.

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

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 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

MailMessage Class | SocketTools Namespace | ReplaceMessage Method