Click or drag to resize
MimeKit

SearchQueryToContains Method

Match messages where the To header contains the specified text.

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

Parameters

text  String
The text to match against.

Return Value

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

Matches messages where the To header contains the specified text.

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