Search QueryFrom Contains Method
Match messages where the From header contains the specified text.
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 FromContains(
string text
)Parameters
- text String
- The text to match against.
Return Value
TextSearchQueryA TextSearchQuery.
Remarks
Matches messages where the From header contains the specified text.
Exceptions
| ArgumentNullException | text is . |
| ArgumentException | text is empty. |