wodMailbox ActiveX Control - RemoveAll Method
      
 

Description

Removes all messages from mailbox.


Return Type

None  


Syntax

object.RemoveAll



The RemoveAll Method syntax has these parts:

Part Description
object An expression evaluating to an object of type Messages.

Remarks

RemoveAll method will remove all messages from the mailbox file, or all parts from some message. However, contents of the mailbox will not be updated until you manually call Update method.

If current Message object represents part of another message, then it will remove all parts from that particular message. Same as before - you have to call Update to make actual changes in the mailbox file.

To see the difference,

mailbox.RemoveAll will remove all messages from the mailbox

and

mailbox.Message(0).Parts.RemoveAll will remove all parts from first message.