Click or drag to resize
MimeKit

IMailFolderSearch(SearchQuery, CancellationToken) Method

Search the folder for messages matching the specified query.

Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 4.7.1
Syntax
C#
IList<UniqueId> Search(
	SearchQuery query,
	CancellationToken cancellationToken = default
)

Parameters

query  SearchQuery
The search query.
cancellationToken  CancellationToken  (Optional)
The cancellation token.

Return Value

IListUniqueId
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