Click or drag to resize
MimeKit

SearchQueryAnnotationsContain Method

Match messages with the specified annotation.

Namespace: MailKit.Search
Assembly: MailKit (in MailKit.dll) Version: 4.7.1
Syntax
C#
public static AnnotationSearchQuery AnnotationsContain(
	AnnotationEntry entry,
	AnnotationAttribute attribute,
	string value
)

Parameters

entry  AnnotationEntry
The annotation entry.
attribute  AnnotationAttribute
The annotation attribute.
value  String
The annotation attribute value.

Return Value

AnnotationSearchQuery
A AnnotationSearchQuery.
Exceptions
ExceptionCondition
ArgumentNullException

entry is null.

-or-

attribute is null.

ArgumentExceptionattribute is not a valid attribute for searching.
Remarks

Matches messages with the specified annotation.

Note  Note
This is equivalent to the ANNOTATION search key as defined in rfc5257 and is therefor only available for use with IMAP servers that support the ANNOTATE extension.
See Also