ImapUtilsAllOf Method |
Namespace: MailBee.ImapMail
Exception | Condition |
---|---|
MailBeeInvalidArgumentException | Any of the specified search conditions is a null reference (Nothing in Visual Basic) or an empty string, or if the specified list of search conditions is empty. |
This method allows you to produce ANDed query you can then pass to Search(Boolean, String, String) method. You can combine this method with other methods like AnyOf(String) to build complex and nested queries.
For instance, ImapUtils.AllOf("SINCE 1-Feb-1994", "FLAGGED", "OLD") returns (SINCE 1-Feb-1994 FLAGGED OLD).