Click or drag to resize
MimeKit

IMailFolderSearchAsync(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.3.0
Syntax
C#
Task<IList<UniqueId>> SearchAsync(
	IList<UniqueId> uids,
	SearchQuery query,
	CancellationToken cancellationToken = default
)

Parameters

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

Return Value

TaskIListUniqueId
An array of matching UIDs.
Remarks
The returned array of unique identifiers can be used with methods such as GetMessage(UniqueId, CancellationToken, ITransferProgress).
See Also