SearchQueryOr(SearchQuery, SearchQuery) Method

Create a conditional OR operation.

Definition

Namespace: MailKit.Search
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public static BinarySearchQuery Or(
	SearchQuery left,
	SearchQuery right
)

Parameters

left  SearchQuery
The first operand.
right  SearchQuery
The second operand.

Return Value

BinarySearchQuery
A BinarySearchQuery representing the conditional OR operation.

Remarks

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

  Note

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

Exceptions

ArgumentNullException

left is .

-or-

right is .

See Also