ExchangeAdvancedSyntaxQueryBuilder.Or

ExchangeAdvancedSyntaxQueryBuilder.Or method

Search messages that match either search key. Provides disjunction between two expressions (OR).

public MailQuery Or(MailQuery query1, MailQuery query2)
ParameterTypeDescription
query1MailQueryThe query1.
query2MailQueryThe query2.

Return Value

MailQuery that represents search query (one searching criterion).

Exceptions

exceptioncondition
ArgumentNullExceptionquery1 or query2

See Also