ImapClientDeleteMessageRange Method |
Deletes the specified messages.
Namespace:
GemBox.Email.Imap
Assembly:
GemBox.Email (in GemBox.Email.dll) Version: 15.0.35.1026
Syntax public void DeleteMessageRange(
int startingNumber,
int endingNumber,
bool expunge
)
Public Sub DeleteMessageRange (
startingNumber As Integer,
endingNumber As Integer,
expunge As Boolean
)
Parameters
- startingNumber
- Type: SystemInt32
First message number. - endingNumber
- Type: SystemInt32
Last message number. - expunge
- Type: SystemBoolean
True to delete message immediately from the server; otherwise, false.
Exceptions Remarks
Setting expunge to true will delete specified messages from the server and those messages cannot be undeleted. By setting expunge to false, specified messages will just be marked for deletion,
but they won't be removed from the server until
Expunge is called.
See Also