 | ImapSelectAsync(FolderInfo, CancellationToken) Method |
Selects specified folder (mailbox) as the current folder so that messages inside can be accessed.
Select command will remove the
Recent flag since the folder has now been viewed
(This is not the same as the
Seen IMAP flag).
Namespace: Limilabs.Client.IMAPAssembly: Mail (in Mail.dll) Version: 3.0.26106.1555
Syntaxpublic Task<FolderStatus> SelectAsync(
FolderInfo folder,
CancellationToken cancel = default
)
Public Function SelectAsync (
folder As FolderInfo,
Optional cancel As CancellationToken = Nothing
) As Task(Of FolderStatus)
public:
Task<FolderStatus^>^ SelectAsync(
FolderInfo^ folder,
CancellationToken cancel = CancellationToken()
)
member SelectAsync :
folder : FolderInfo *
?cancel : CancellationToken
(* Defaults:
let _cancel = defaultArg cancel new CancellationToken()
*)
-> Task<FolderStatus> Parameters
- folder FolderInfo
- Folder to select.
- cancel CancellationToken (Optional)
- A cancellation token that can be used to signal the asynchronous operation should be canceled.
Return Value
TaskFolderStatusStatus of the folder (mailbox). It can be updated by subsequent
Noop or other commands.
Remarks
See Also