Click or drag to resize

ImapSearchAsync(Flag, CancellationToken) Method

Gets UIDS of all messages in the current folder (mailbox) with specified flag sorted from oldest to newest. Equivalent to Search(Expression.HasFlag(flag))

Namespace: Limilabs.Client.IMAP
Assembly: Mail (in Mail.dll) Version: 3.0.26106.1555
Syntax
public Task<List<long>> SearchAsync(
	Flag flag,
	CancellationToken cancel = default
)

Parameters

flag  Flag
Flag to search for.
cancel  CancellationToken  (Optional)
A cancellation token that can be used to signal the asynchronous operation should be canceled.

Return Value

TaskListInt64
UID list sorted from oldest to newest.
See Also