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.3.0
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.

Note  Note
A keyword is a user-defined message flag.
See Also