Click or drag to resize
MimeKit

SearchQueryHasFlags Method

Match messages that have the specified flags set.

Namespace: MailKit.Search
Assembly: MailKit (in MailKit.dll) Version: 4.7.1
Syntax
C#
public static SearchQuery HasFlags(
	MessageFlags flags
)

Parameters

flags  MessageFlags
The message flags.

Return Value

SearchQuery
A SearchQuery.
Exceptions
ExceptionCondition
ArgumentExceptionflags does not specify any valid message flags.
Remarks

Matches messages that have the specified flag(s) set.

Note  Note
Maps each flag to the corresponding search key (ANSWERED, DELETED, DRAFT, FLAGGED, RECENT or SEEN) as defined in rfc3501.
See Also