Click or drag to resize
MimeKit

SearchQueryNotKeywords Method

Match messages that do not have any of the specified keywords set.

Namespace: MailKit.Search
Assembly: MailKit (in MailKit.dll) Version: 4.7.1
Syntax
C#
public static SearchQuery NotKeywords(
	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 do not have any 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 UNKEYWORD search keys as defined in rfc3501.
See Also