Unselects the currently selected folder. Messages marked as deleted (with a Deleted flag) are not permanently removed. To remove them, use UnselectFolder(Boolean) or Purge()()()() method.

Namespace:  Rebex.Net
Assembly:  Rebex.Imap (in Rebex.Imap.dll)

Syntax

Visual Basic
Public Sub UnselectFolder
C#
public void UnselectFolder()

Remarks

CurrentFolder will be null (Nothing in Visual Basic) after a call to this method.

This method does not perform any IMAP command. To unselect a folder and purge deleted messages using the CLOSE command, use UnselectFolder(Boolean) mehod.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also