| IMailFolderSearchAsync(SearchQuery, CancellationToken) Method |
Asynchronously search the folder for messages matching the specified query.
Namespace: MailKitAssembly: MailKit (in MailKit.dll) Version: 4.7.1
Syntax Task<IList<UniqueId>> SearchAsync(
SearchQuery query,
CancellationToken cancellationToken = default
)
Parameters
- query SearchQuery
- The search query.
- cancellationToken CancellationToken (Optional)
- The cancellation token.
Return Value
TaskIListUniqueIdAn array of matching UIDs.
Remarks See Also