Click or drag to resize
MimeKit

SearchQueryHasGMailLabel Method

Match messages that have the specified GMail label.

Namespace: MailKit.Search
Assembly: MailKit (in MailKit.dll) Version: 4.7.1
Syntax
C#
public static TextSearchQuery HasGMailLabel(
	string label
)

Parameters

label  String
The GMail label.

Return Value

TextSearchQuery
A TextSearchQuery.
Exceptions
ExceptionCondition
ArgumentNullExceptionlabel is null.
ArgumentExceptionlabel is empty.
Remarks

Matches messages that have the specified GMail label.

Note  Note
This is equivalent to the X-GM-LABELS search key as defined in Google's IMAP extensions and is therefor only available for use with IMAP servers that support the X-GM-EXT1 extension.
See Also