| IMailFolderSearch(SearchOptions, IListUniqueId, SearchQuery, CancellationToken) Method |
Search the subset of UIDs in the folder for messages matching the specified query.
Namespace: MailKitAssembly: MailKit (in MailKit.dll) Version: 4.7.1
Syntax SearchResults Search(
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
SearchResultsThe search results.
Remarks
Searches the fsubset of UIDs in the folder for messages matching the specified query,
returning only the specified search results.
See Also