The SearchCondition type exposes the following members.

Constructors

  NameDescription
Public methodSearchCondition
Initializes a new instance of the SearchCondition class

Methods

  NameDescription
Public methodStatic memberAll
Finds all messages in the mailbox.
Public methodAnd
Logically ANDs multiple search conditions, meaning a message will only be included in the search result if both of the ANDed conditions are met.
Public methodStatic memberAnswered
Finds messages that have the \Answered flag set.
Public methodStatic memberBCC
Finds messages that contain the specified string in the envelope structure's BCC field.
Public methodStatic memberBefore
Finds messages whose internal date (disregarding time and timezone) is earlier than the specified date.
Public methodStatic memberBody
Finds messages that contain the specified string in the body of the message.
Public methodStatic memberCc
Finds messages that contain the specified string in the envelope structure's CC field.
Public methodStatic memberDeleted
Finds messages that have the \Deleted flag set.
Public methodStatic memberDraft
Finds messages that have the \Draft flag set.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodStatic memberFlagged
Finds messages that have the \Flagged flag set.
Public methodStatic memberFrom
Finds messages that contain the specified string in the envelope structure's FROM field.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberGreaterThan
Finds messages with a unique identifier greater than the specified unique identifier.
Public methodStatic memberHeader
Finds messages that have a header with the specified field-name and that contains the specified string in the text of the header.
Public methodStatic memberKeyword
Finds messages with the specified keyword flag set.
Public methodStatic memberLarger
Finds messages with a size larger than the specified number of bytes.
Public methodStatic memberLessThan
Finds messages with a unique identifier less than the specified unique identifier.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberNew
Finds messages that have the \Recent flag set but not the \Seen flag.
Public methodNot
Logically negates search conditions, meaning a message will only be included in the search result if the specified conditions are not met.
Public methodStatic memberOld
Finds messages that do not have the \Recent flag set.
Public methodOr
Logically ORs multiple search conditions, meaning a message will be included in the search result if it meets at least either of the conditions.
Public methodStatic memberRecent
Finds messages that have the \Recent flag set.
Public methodStatic memberSeen
Finds messages that have the \Seen flag set.
Public methodStatic memberSentBefore
Finds messages whose Date: header (disregarding time and timezone) is earlier than the specified date.
Public methodStatic memberSentOn
Finds messages whose Date: header (disregarding time and timezone) is within the specified date.
Public methodStatic memberSentSince
Finds messages whose Date: header (disregarding time and timezone) is within or later than the specified date.
Public methodStatic memberSmaller
Finds messages with a size smaller than the specified number of bytes.
Public methodStatic memberSubject
Finds messages that contain the specified string in the envelope structure's SUBJECT field.
Public methodStatic memberText
Finds messages that contain the specified string in the header or body of the message.
Public methodStatic memberTo
Finds messages that contain the specified string in the envelope structure's TO field.
Public methodToString
Constructs a string from the SearchCondition object using the proper syntax as is required for the IMAP SEARCH command.
(Overrides Object..::..ToString()()()().)
Public methodStatic memberUID
Finds messages with unique identifiers corresponding to the specified unique identifier set.
Public methodStatic memberUnanswered
Finds messages that do not have the \Answered flag set.
Public methodStatic memberUndeleted
Finds messages that do not have the \Deleted flag set.
Public methodStatic memberUndraft
Finds messages that do not have the \Draft flag set.
Public methodStatic memberUnflagged
Finds messages that do not have the \Flagged flag set.
Public methodStatic memberUnkeyword
Finds messages that do not have the specified keyword flag set.
Public methodStatic memberUnseen
Finds messages that do not have the \Seen flag set.

See Also