Unselects the currently selected folder and optionally permanently removes all messages marked as deleted (with a Deleted flag) from the current folder.

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

Syntax

Visual Basic
Public Sub UnselectFolder ( _
	purgeDeleted As Boolean _
)
C#
public void UnselectFolder(
	bool purgeDeleted
)

Parameters

purgeDeleted
Type: System..::..Boolean
Specifies whether to purge (permanently remove) all messages marked as deleted.

Remarks

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

This method uses IMAP CLOSE command to purge the messages. No purging is performed if the current folder is selected as read-only.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also