Click or drag to resize
MimeKit

HeaderListContains(String) Method

Check if the HeaderList contains a header with the specified field name.

Namespace: MimeKit
Assembly: MimeKit (in MimeKit.dll) Version: 4.10.0
Syntax
C#
public bool Contains(
	string field
)

Parameters

field  String
The name of the header field.

Return Value

Boolean
if the requested header exists; otherwise, .
Exceptions
ExceptionCondition
ArgumentNullExceptionfield is .
Remarks
Determines whether the header list contains the specified header.
See Also