Click or drag to resize
MimeKit

Header(HeaderId, String) Constructor

Initialize a new instance of the Header class.

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

Parameters

id  HeaderId
The header identifier.
value  String
The value of the header.
Exceptions
ExceptionCondition
ArgumentNullExceptionvalue is null.
ArgumentOutOfRangeExceptionid is not a valid HeaderId.
Remarks
Creates a new message or entity header for the specified field and value pair with the UTF-8 encoding.
See Also