SocketTools .NET Edition

InternetMail.UnselectMailbox Method ()

Unselects the current mailbox and expunges deleted messages.

[Visual Basic]
Overloads Public Function UnselectMailbox() As Boolean
[C#]
public bool UnselectMailbox();

Return Value

This method returns a boolean value. If the method succeeds, the return value is true. If the method fails, the return value is false. To get extended error information, check the value of the LastError property.

Remarks

The UnselectMailbox method unselects the current mailbox. Once the mailbox has been unselected, no messages in that mailbox can be accessed, and any messages which have been flagged for deletion are removed.

See Also