ImapClientUnselectFolderAsync Method (IConnection, CancellationToken)

Permanently removes all messages marked as deleted for currently selected folder and removes selected-state for this folder.

Namespace:  Aspose.Email.Clients.Imap
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 22.4
Syntax
public Task UnselectFolderAsync(
	IConnection connection,
	CancellationToken token
)

Parameters

connection
Type: Aspose.Email.ClientsIConnection
Connection to a server
token
Type: System.ThreadingCancellationToken
Propagates notification that operations should be canceled.

Return Value

Type: Task
Task object, with delegate for this operation
See Also