Finds messages that have a header with the specified field-name and that contains the
specified string in the text of the header.
Namespace: S22.ImapAssembly: S22.Imap (in S22.Imap.dll) Version: 3.6.0.0 (3.6.0.0)
Syntax
C# |
---|
public static SearchCondition Header( string name, string text ) |
Parameters
- name
- Type: System..::..String
field-name of the header to search for.
- text
- Type: System..::..String
String to search for in the text of the header.
Return Value
A SearchCondition object representing the "HEADER" search criterion.
Remarks
If the string to search is zero-length, this matches all messages that have a header line
with the specified field-name regardless of the contents.
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException | The name parameter or the text parameter is null. |