| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As MailboxCollection Dim value As Object instance.Remove(value) | |
Parameters
- value
- The object representing the mailbox to remove.
| Exception | Description |
|---|---|
| Dart.PowerTCP.Mail.ProtocolException | Bad IMAP protocol response received from server. |
| System.Net.Sockets.SocketException | The requested address is not valid in its context. |
The MailboxCollection.Remove method removes the mailbox which is equal to value from the server by sending the IMAP DELETE command.
After calling this method, the MailboxCollection will be automatically updated to reflect the current state of the collection. There is no need to explicitly call MailboxCollection.Refresh. In addition, the object in the coll
Target Platforms: Microsoft .NET Framework 2.0