Permanently removes the specified mailbox.
Namespace: S22.ImapAssembly: S22.Imap (in S22.Imap.dll) Version: 3.6.0.0 (3.6.0.0)
Syntax
C# |
---|
public void DeleteMailbox( string mailbox ) |
Parameters
- mailbox
- Type: System..::..String
The name of the mailbox to remove.
Implements
IImapClient..::..DeleteMailbox(String)
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException | The mailbox parameter is null. |
S22.Imap..::..BadServerResponseException | The specified mailbox could not be removed. The message property of the exception contains the error message returned by the server. |
System.IO..::..IOException | There was a failure writing to or reading from the network. |
System..::..ObjectDisposedException | The ImapClient object has been disposed. |
S22.Imap..::..NotAuthenticatedException | The method was called in non-authenticated state, i.e. before logging in. |