| IMailFolderSortAsync(SearchQuery, IListOrderBy, CancellationToken) Method |
Asynchronously sort messages matching the specified query.
Namespace: MailKitAssembly: MailKit (in MailKit.dll) Version: 4.7.1
Syntax Task<IList<UniqueId>> SortAsync(
SearchQuery query,
IList<OrderBy> orderBy,
CancellationToken cancellationToken = default
)
Parameters
- query SearchQuery
- The search query.
- orderBy IListOrderBy
- The sort order.
- cancellationToken CancellationToken (Optional)
- The cancellation token.
Return Value
TaskIListUniqueIdAn array of matching UIDs in the specified sort order.
Remarks See Also