Click or drag to resize
MimeKit

IMailFolderSearch(SearchOptions, 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#
SearchResults Search(
	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

SearchResults
The search results.
Remarks
Searches the folder for messages matching the specified query, returning only the specified search results.
See Also