MailQueryBuilder

MailQueryBuilder class

Represents the builder of search expression.

Note: By default, the result is the intersection (AND function) of all the messages that match those keys. To join keys by OR function, please, use Or() method of this class

Constructors

NameDescription
MailQueryBuilder (2 overloads)Initializes a new instance of the MailQueryBuilder class.

Methods

NameDescription
ClearClears query.
get_BccGets the field that allows to find messages that contain the specified string in the envelope structure’s BCC field.
get_BodyGets the field that allows to find messages that contain the specified string in the body of the message.
get_CcGets the field that allows to find messages that contain the specified string in the envelope structure’s CC field.
get_DefaultEncodingGets default encoding (charset) for query builder
get_FromGets the field that allows to find messages that contain the specified string in the envelope structure’s FROM field.
get_InternalDateGets the field that allows to find messages by internal date.
get_KeyCollectionGets the key collection.
get_OrderByCollectionGets the key collection.
get_SentDateGets the field that allows to find messages by sent date.
get_SubjectGets the field that allows to find messages that contain the specified string in the envelope structure’s SUBJECT field.
get_TextGets the field that allows to find the messages that contain the specified string in the headers (subject, from, to, cc) and body of the message.
get_ToGets the field that allows to find messages that contain the specified string in the envelope structure’s TO field.
GetOptions
GetQueryGets the query.
OrSearch messages that match either search key. Provides disjunction between two expressions (OR).