Deletes the mail message with the specified UID.
Namespace: S22.ImapAssembly: S22.Imap (in S22.Imap.dll) Version: 3.6.0.0 (3.6.0.0)
Syntax
Parameters
- uid
- Type: System..::..UInt32
The UID of the mail message to delete.
- mailbox (Optional)
- Type: System..::..String
The mailbox the message will be deleted from. If this parameter is omitted, the value of the DefaultMailbox property is used to determine the mailbox to operate on.
Implements
IImapClient..::..DeleteMessage(UInt32, String)
Exceptions
Exception | Condition |
---|---|
S22.Imap..::..BadServerResponseException | The mail message could not be deleted. The message property of the exception contains the error message returned by the server. |
System..::..ObjectDisposedException | The ImapClient object has been disposed. |
System.IO..::..IOException | There was a failure writing to or reading from the network. |
S22.Imap..::..NotAuthenticatedException | The method was called in non-authenticated state, i.e. before logging in. |