SearchQueryAnnotationsContain Method

Match messages with the specified annotation.

Definition

Namespace: MailKit.Search
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
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.

Remarks

Matches messages with the specified annotation.

  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.

Exceptions

ArgumentNullException

entry is .

-or-

attribute is .

ArgumentException attribute is not a valid attribute for searching.

See Also