Search QueryHas GMail Label Method
Match messages that have the specified GMail label.
Definition
Namespace: MailKit.Search
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
A TextSearchQuery.
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public static TextSearchQuery HasGMailLabel(
string label
)Parameters
- label String
- The GMail label.
Return Value
TextSearchQueryA TextSearchQuery.
Remarks
Matches messages that have the specified GMail label.
Exceptions
| ArgumentNullException | label is . |
| ArgumentException | label is empty. |