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.7.1
Syntax
C#
public bool Contains(
	string field
)

Parameters

field  String
The name of the header field.

Return Value

Boolean

Field Value

Boolean
true if the requested header exists; otherwise

Field Value

Boolean
false.
Exceptions
ExceptionCondition
ArgumentNullExceptionfield is null.
Remarks
Determines whether or not the header list contains the specified header.
See Also