Click or drag to resize
MimeKit

SearchQueryHasKeywords Method

Match messages that have all of the specified keywords set.

Namespace: MailKit.Search
Assembly: MailKit (in MailKit.dll) Version: 4.7.1
Syntax
C#
public static SearchQuery HasKeywords(
	IEnumerable<string> keywords
)

Parameters

keywords  IEnumerableString
The keywords.

Return Value

SearchQuery
A SearchQuery.
Exceptions
ExceptionCondition
ArgumentNullExceptionkeywords is null.
ArgumentException

One or more of the keywords is null or empty.

-or-

No keywords were given.

Remarks

Matches messages that have all of the specified keywords set.

A keyword is a user-defined message flag that can be set (or unset) on a message.

Note  Note
This is equivalent to AND-ing multiple KEYWORD search keys as defined in rfc3501.
See Also