HeaderListAdd(HeaderId, Encoding, String) Method

Add a header with the specified field and value.

Definition

Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
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.

Remarks

Adds a new header for the specified field and value pair.

Exceptions

ArgumentNullException

encoding is .

-or-

value is .

ArgumentOutOfRangeException id is not a valid HeaderId.

See Also