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.3.0
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.
See Also