Click or drag to resize
MimeKit

IMailFolderSort(SearchQuery, IListOrderBy, CancellationToken) Method

Sort messages matching the specified query.

Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 4.3.0
Syntax
C#
IList<UniqueId> Sort(
	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

IListUniqueId
An array of matching UIDs in the specified sort order.
Remarks
The returned array of unique identifiers will be sorted in the preferred order and can be used with GetMessage(UniqueId, CancellationToken, ITransferProgress).
See Also