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
Syntaxpublic Task UnselectFolderAsync(
IConnection connection,
CancellationToken token
)
Public Function UnselectFolderAsync (
connection As IConnection,
token As CancellationToken
) As Task
public:
Task^ UnselectFolderAsync(
IConnection^ connection,
CancellationToken token
)
member UnselectFolderAsync :
connection : IConnection *
token : CancellationToken -> Task
Parameters
- connection
- Type: Aspose.Email.ClientsIConnection
Connection to a server - token
- Type: System.ThreadingCancellationToken
Propagates notification that operations should be canceled.
Return Value
Type:
TaskTask object, with delegate for this operation
See Also