| IMailFolderSearchAsync(SearchOptions, 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<SearchResults> SearchAsync(
SearchOptions options,
SearchQuery query,
CancellationToken cancellationToken = default
)
Parameters
- options SearchOptions
- The search options.
- query SearchQuery
- The search query.
- cancellationToken CancellationToken (Optional)
- The cancellation token.
Return Value
TaskSearchResultsThe search results.
Remarks
Asynchronously searches the folder for messages matching the specified query,
returning only the specified search results.
See Also