Search QueryNot Keyword Method
Match messages that do not have the specified keyword set.
Definition
Namespace: MailKit.Search
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
A TextSearchQuery.
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public static TextSearchQuery NotKeyword(
string keyword
)Parameters
- keyword String
- The keyword.
Return Value
TextSearchQueryA 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.
Exceptions
| ArgumentNullException | keyword is . |
| ArgumentException | keyword is empty. |