 | ImapCloseCurrentFolderAsync Method |
Issues CLOSE command to the server.
Unless Examine was used to open folder, CLOSE command permanently removes all messages that have the
Deleted flag set from the currently selected folder,
and returns to the authenticated state from the selected state (no folder is selected).
Namespace: Limilabs.Client.IMAPAssembly: Mail (in Mail.dll) Version: 3.0.26106.1555
Syntaxpublic Task CloseCurrentFolderAsync(
CancellationToken cancel = default
)
Public Function CloseCurrentFolderAsync (
Optional cancel As CancellationToken = Nothing
) As Task
public:
Task^ CloseCurrentFolderAsync(
CancellationToken cancel = CancellationToken()
)
member CloseCurrentFolderAsync :
?cancel : CancellationToken
(* Defaults:
let _cancel = defaultArg cancel new CancellationToken()
*)
-> Task Parameters
- cancel CancellationToken (Optional)
- A cancellation token that can be used to signal the asynchronous operation should be canceled.
Return Value
TaskA task that represents the asynchronous IMAP folder close operation.
See Also