Exemplo n.º 1
0
 /// <summary>
 /// Logically ORs multiple search conditions, meaning a message will be included in the search
 /// result if it meets at least either of the conditions.
 /// </summary>
 /// <param name="other">A search condition to logically OR this MailSearchCriteria instance
 /// with.</param>
 /// <returns>A new MailSearchCriteria instance which can be further chained with other search
 /// conditions.</returns>
 /// <exception cref="ArgumentNullException">The other parameter is null.</exception>
 public MailSearchCriteria Or(MailSearchCriteria other)
 {
     other.ThrowIfNull("other");
     return(Join("OR", this, other));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Logically ANDs multiple search conditions, meaning a message will only be included in the
 /// search result if both of the ANDed conditions are met.
 /// </summary>
 /// <param name="other">A search condition to logically AND this MailSearchCriteria instance
 /// with.</param>
 /// <returns>A new MailSearchCriteria instance which can be further chained with other search
 /// conditions.</returns>
 /// <exception cref="ArgumentNullException">The other parameter is null.</exception>
 public MailSearchCriteria And(MailSearchCriteria other)
 {
     other.ThrowIfNull("other");
     return(Join(string.Empty, this, other));
 }