 | ImapStatusAsync(FolderInfo, CancellationToken) Method |
The STATUS command requests the status of the indicated mailbox.
It does not change the currently selected mailbox, nor does it affect the state of any messages in the queried mailbox (messages don't lose the
Recent) flag.
This command MUST NOT be used as a "check for new messages in the selected mailbox" operation
(You should rather use
FolderStatus and
Noop or
UIDNext) or
Search(Flag)).
STATUS command is not guaranteed to be fast in its response.
Namespace: Limilabs.Client.IMAPAssembly: Mail (in Mail.dll) Version: 3.0.26106.1555
Syntaxpublic Task<Status> StatusAsync(
FolderInfo folder,
CancellationToken cancel = default
)
Public Function StatusAsync (
folder As FolderInfo,
Optional cancel As CancellationToken = Nothing
) As Task(Of Status)
public:
Task<Status^>^ StatusAsync(
FolderInfo^ folder,
CancellationToken cancel = CancellationToken()
)
member StatusAsync :
folder : FolderInfo *
?cancel : CancellationToken
(* Defaults:
let _cancel = defaultArg cancel new CancellationToken()
*)
-> Task<Status> Parameters
- folder FolderInfo
- Folder name.
- cancel CancellationToken (Optional)
- A cancellation token that can be used to signal the asynchronous operation should be canceled.
Return Value
TaskStatusStatus information of the specified folder.
See Also