SearchQuery Class

A specialized query for searching messages in a IMailFolder.

Definition

Remarks

A specialized query for searching messages in a IMailFolder.

Constructors

SearchQuery Initializes a new instance of the SearchQuery class.
SearchQuery(SearchTerm) Initializes a new instance of the SearchQuery class.

Properties

Term Get the search term used by the search query.

Methods

And(SearchQuery) Create a conditional AND operation.
And(SearchQuery, SearchQuery) Create a conditional AND operation.
AnnotationsContain Match messages with the specified annotation.
BccContains Match messages where the Bcc header contains the specified text.
BodyContains Match messages where the message body contains the specified text.
CcContains Match messages where the Cc header contains the specified text.
ChangedSince Match messages that have mod-sequence values greater than or equal to the specified mod-sequence value.
DeliveredAfter Match messages that were delivered after the specified date.
DeliveredBefore Match messages that were delivered before the specified date.
DeliveredOn Match messages that were delivered on the specified date.
Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
Filter(MetadataTag) Match messages using a saved search filter.
Filter(String) Match messages using a saved search filter.
Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
FromContains Match messages where the From header contains the specified text.
Fuzzy Apply a fuzzy matching algorithm to the specified expression.
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetType Gets the Type of the current instance.
(Inherited from Object)
GMailMessageId Match messages that have the specified GMail message identifier.
GMailRawSearch Match messages using the GMail search expression.
GMailThreadId Match messages belonging to the specified GMail thread.
HasFlags Match messages that have the specified flags set.
HasGMailLabel Match messages that have the specified GMail label.
HasKeyword Match messages that have the specified keyword set.
HasKeywords(IEnumerableString) Match messages that have all of the specified keywords set.
HasKeywords(String) Match messages that have all of the specified keywords set.
HeaderContains Match messages where the specified header contains the specified text.
LargerThan Match messages that are larger than the specified number of octets.
MemberwiseClone Creates a shallow copy of the current Object.
(Inherited from Object)
MessageContains Match messages that contain the specified text in either the header or the body.
Not Create a logical negation of the specified expression.
NotFlags Match messages that do not have any of the specified flags set.
NotKeyword Match messages that do not have the specified keyword set.
NotKeywords(IEnumerableString) Match messages that do not have any of the specified keywords set.
NotKeywords(String) Match messages that do not have any of the specified keywords set.
OlderThan Match messages older than the specified number of seconds.
Or(SearchQuery) Create a conditional OR operation.
Or(SearchQuery, SearchQuery) Create a conditional OR operation.
SavedBefore Match messages that were saved to the mailbox before the specified date.
SavedOn Match messages that were saved to the mailbox on the specified date.
SavedSince Match messages that were saved to the mailbox since the specified date.
SentBefore Match messages that were sent before the specified date.
SentOn Match messages that were sent on the specified date.
SentSince Match messages that were sent since the specified date.
SmallerThan Match messages that are smaller than the specified number of octets.
SubjectContains Match messages where the Subject header contains the specified text.
ToContains Match messages where the To header contains the specified text.
ToString Returns a string that represents the current object.
(Inherited from Object)
Uids Limit the search query to messages with the specified unique identifiers.
YoungerThan Match messages younger than the specified number of seconds.

Fields

All Match all messages in the folder.
Answered Match messages with the Answered flag set.
Deleted Match messages with the Deleted flag set.
Draft Match messages with the Draft flag set.
Flagged Match messages with the Flagged flag set.
New Match messages with the Recent flag set but not the Seen.
NotAnswered Match messages that do not have the Answered flag set.
NotDeleted Match messages that do not have the Deleted flag set.
NotDraft Match messages that do not have the Draft flag set.
NotFlagged Match messages that do not have the Flagged flag set.
NotRecent Match messages that do not have the Recent flag set.
NotSeen Match messages that do not have the Seen flag set.
Old Match messages that do not have the Recent flag set.
Recent Match messages with the Recent flag set.
SaveDateSupported Match all messages in the mailbox when the underlying storage of that mailbox supports the save date attribute.
Seen Match messages with the Seen flag set.

See Also