HeaderListAdd(String, 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(
	string field,
	Encoding encoding,
	string value
)

Parameters

field  String
The name of the header field.
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

field is .

-or-

encoding is .

-or-

value is .

ArgumentException The field contains illegal characters.

See Also