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