Click or drag to resize
MimeKit

SearchQueryOr(SearchQuery) Method

Create a conditional OR operation.

Namespace: MailKit.Search
Assembly: MailKit (in MailKit.dll) Version: 4.7.1
Syntax
C#
public BinarySearchQuery Or(
	SearchQuery expr
)

Parameters

expr  SearchQuery
An additional query to execute.

Return Value

BinarySearchQuery
A BinarySearchQuery representing the conditional AND operation.
Exceptions
ExceptionCondition
ArgumentNullExceptionexpr is null.
Remarks

A conditional OR operation only evaluates the second operand if the first operand evaluates to true.

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