Click or drag to resize
MimeKit

SearchQueryBodyContains Method

Match messages where the message body contains the specified text.

Namespace: MailKit.Search
Assembly: MailKit (in MailKit.dll) Version: 4.7.1
Syntax
C#
public static TextSearchQuery BodyContains(
	string text
)

Parameters

text  String
The text to match against.

Return Value

TextSearchQuery
A TextSearchQuery.
Exceptions
ExceptionCondition
ArgumentNullExceptiontext is null.
ArgumentExceptiontext is empty.
Remarks

Matches messages where the message body contains the specified text.

Note  Note
This is equivalent to the BODY search key as defined in rfc3501.
See Also