Click or drag to resize
MimeKit

HeaderListAdd(HeaderId, Encoding, String) Method

Add a header with the specified field and value.

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

Parameters

id  HeaderId
The header identifier.
encoding  Encoding
The character encoding to use for the value.
value  String
The header value.
Exceptions
ExceptionCondition
ArgumentNullException

encoding is null.

-or-

value is null.

ArgumentOutOfRangeExceptionid is not a valid HeaderId.
Remarks
Adds a new header for the specified field and value pair.
See Also