Header ListContains(String) Method
Check if the HeaderList contains a header with the specified field name.
Definition
Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
if the requested header exists; otherwise, .
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public bool Contains(
string field
)Parameters
- field String
- The name of the header field.
Return Value
Booleanif the requested header exists; otherwise, .
Remarks
Determines whether the header list contains the specified header.
Exceptions
| ArgumentNullException | field is . |