CloseMailbox Method
Removes all messages marked with 'Deleted' flag from the currently selected mailbox and unselect mailbox.
Syntax
public void CloseMailbox();
Public Sub CloseMailbox()
Remarks
This method permanently removes all messages that have the 'Deleted' flag set from the current (selected) mailbox, and then closes (deselect) the mailbox.
.NET Standard Notes
To call this method in an asynchronous manner call CloseMailboxAsync instead. When the method completes (or an error is encountered) the CloseMailboxCompleted event will fire.