SearchQueryMessageContains 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
C#
public static TextSearchQuery MessageContains(
	string text
)

Parameters

text  String
The text to match against.

Return Value

TextSearchQuery
A TextSearchQuery.

Remarks

Matches messages that contain the specified text in either the header or the body.

  Note

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

Exceptions

ArgumentNullException text is .
ArgumentException text is empty.

See Also