Click or drag to resize
MimeKit

HeaderListAdd(String, Encoding, 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(
	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.
Exceptions
ExceptionCondition
ArgumentNullException

field is null.

-or-

encoding is null.

-or-

value is null.

ArgumentException The field contains illegal characters.
Remarks
Adds a new header for the specified field and value pair.
See Also