Click or drag to resize
MimeKit

SearchQueryNot Method

Create a logical negation of the specified expression.

Namespace: MailKit.Search
Assembly: MailKit (in MailKit.dll) Version: 4.7.1
Syntax
C#
public static UnarySearchQuery Not(
	SearchQuery expr
)

Parameters

expr  SearchQuery
The expression

Return Value

UnarySearchQuery
A UnarySearchQuery.
Exceptions
ExceptionCondition
ArgumentNullExceptionexpr is null.
Remarks

Creates a logical negation of the specified expression.

Note  Note
This is equivalent to the NOT search key as defined in rfc3501.
See Also