Search QueryNot Keywords(String) Method
Match messages that do not have any of the specified keywords set.
Definition
Namespace: MailKit.Search
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
A SearchQuery.
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public static SearchQuery NotKeywords(
params string[] keywords
)Parameters
- keywords String
- The keywords.
Return Value
SearchQueryA SearchQuery.
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.
Exceptions
| ArgumentNullException | keywords is . |
| ArgumentException |
One or more of the keywords is or empty. -or- No keywords were given. |