 | 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.IMAPAssembly: Mail (in Mail.dll) Version: 3.0.26106.1555
Syntaxpublic Task<List<long>> SearchAsync(
Flag flag,
CancellationToken cancel = default
)
Public Function SearchAsync (
flag As Flag,
Optional cancel As CancellationToken = Nothing
) As Task(Of List(Of Long))
public:
Task<List<long long>^>^ SearchAsync(
Flag^ flag,
CancellationToken cancel = CancellationToken()
)
member SearchAsync :
flag : Flag *
?cancel : CancellationToken
(* Defaults:
let _cancel = defaultArg cancel new CancellationToken()
*)
-> Task<List<int64>> 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
TaskListInt64UID list sorted from oldest to newest.
See Also