SearchQueryFromContains Method

Match messages where the From header contains the specified text.

Definition

Namespace: MailKit.Search
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

TextSearchQuery
A TextSearchQuery.

Remarks

Matches messages where the From header contains the specified text.

  Note

This is equivalent to the FROM search key as defined in rfc3501.

Exceptions

ArgumentNullException text is .
ArgumentException text is empty.

See Also