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.3.0
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
This search term can only be used with GMail.
See Also