Click or drag to resize
MimeKit

SearchQuerySubjectContains Method

Match messages where the Subject header contains the specified text.

Namespace: MailKit.Search
Assembly: MailKit (in MailKit.dll) Version: 4.7.1
Syntax
C#
public static TextSearchQuery SubjectContains(
	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 Subject header contains the specified text.

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