Click or drag to resize
MimeKit

IMailFolderSort(SearchOptions, IListUniqueId, SearchQuery, IListOrderBy, CancellationToken) Method

Sort messages matching the specified query.

Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 4.3.0
Syntax
C#
SearchResults Sort(
	SearchOptions options,
	IList<UniqueId> uids,
	SearchQuery query,
	IList<OrderBy> orderBy,
	CancellationToken cancellationToken = default
)

Parameters

options  SearchOptions
The search options.
uids  IListUniqueId
The subset of UIDs
query  SearchQuery
The search query.
orderBy  IListOrderBy
The sort order.
cancellationToken  CancellationToken  (Optional)
The cancellation token.

Return Value

SearchResults
The search results.
Remarks
Searches the folder for messages matching the specified query, returning the search results in the specified sort order.
See Also