Click or drag to resize
MimeKit

SearchQueryHeaderContains Method

Match messages where the specified header contains the specified text.

Namespace: MailKit.Search
Assembly: MailKit (in MailKit.dll) Version: 4.7.1
Syntax
C#
public static HeaderSearchQuery HeaderContains(
	string field,
	string text
)

Parameters

field  String
The header field to match against.
text  String
The text to match against.

Return Value

HeaderSearchQuery
A HeaderSearchQuery.
Exceptions
ExceptionCondition
ArgumentNullException

field is null.

-or-

text is null.

ArgumentExceptionfield is empty.
Remarks

Matches messages where the specified header contains the specified text.

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