Click or drag to resize
MimeKit

IMailFolderSearchAsync(SearchOptions, IListUniqueId, SearchQuery, CancellationToken) Method

Asynchronously search the subset of UIDs in the folder for messages matching the specified query.

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

Parameters

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

Return Value

TaskSearchResults
The search results.
Remarks
Asynchronously searches the fsubset of UIDs in the folder for messages matching the specified query, returning only the specified search results.
See Also