Click or drag to resize
MimeKit

SearchQueryHasKeywords(String) Method

Match messages that have all of the specified keywords set.

Namespace: MailKit.Search
Assembly: MailKit (in MailKit.dll) Version: 4.12.1
Syntax
C#
public static SearchQuery HasKeywords(
	params string[] keywords
)

Parameters

keywords  String
The keywords.

Return Value

SearchQuery
A SearchQuery.
Exceptions
ExceptionCondition
ArgumentNullExceptionkeywords is .
ArgumentException

One or more of the keywords is 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