Mailbox Object : Delete Method |
Visual Basic |
---|
Public Sub Delete( _ Optional ByVal MsgSet As String _ ) |
This method only marks a message for deletion. The message is not permanently removed until the Purge method is used.
If provided, MsgSet specifies one or more message numbers in the range from 1 to Count. Each number should be separated with a comma. A range of numbers may be indicated with a lower and upper number separated with a colon. For example, a message set of "1, 5:7, 12" retrieves the following five messages: 1, 5, 6, 7, and 12.
This method may generate the following error code (refer to MailErrorConstants for a complete list of error codes):