SearchQueryNotKeyword Method

Match messages that do not have the specified keyword set.

Definition

Namespace: MailKit.Search
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public static TextSearchQuery NotKeyword(
	string keyword
)

Parameters

keyword  String
The keyword.

Return Value

TextSearchQuery
A TextSearchQuery.

Remarks

Matches messages that do not have the specified keyword set.

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

  Note

This is equivalent to the UNKEYWORD search key as defined in rfc3501.

Exceptions

ArgumentNullException keyword is .
ArgumentException keyword is empty.

See Also