Click or drag to resize
MimeKit

HeaderListAdd(HeaderId, String) Method

Add a header with the specified field and value.

Namespace: MimeKit
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public void Add(
	HeaderId id,
	string value
)

Parameters

id  HeaderId
The header identifier.
value  String
The header value.
Exceptions
ExceptionCondition
ArgumentNullExceptionvalue is null.
ArgumentOutOfRangeExceptionid is not a valid HeaderId.
Remarks
Adds a new header for the specified field and value pair.
See Also