ImapUtilsAllOf Method
Creates IMAP search query of AND type.

Namespace: MailBee.ImapMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax
public static string AllOf(
	params string[] list
)

Parameters

list
Type: SystemString
Search conditions to be ANDed.

Return Value

Type: String
The string containing ANDed search conditions.
Exceptions
ExceptionCondition
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.
Remarks

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).

See Also