Search QueryMessage Contains Method
Match messages that contain the specified text in either the header or the body.
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 MessageContains(
string text
)Parameters
- text String
- The text to match against.
Return Value
TextSearchQueryA TextSearchQuery.
Remarks
Matches messages that contain the specified text in either the header or the body.
Exceptions
| ArgumentNullException | text is . |
| ArgumentException | text is empty. |