Click or drag to resize
MimeKit

Header Constructor (HeaderId, String)

Initialize a new instance of the Header class.

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

Parameters

id
Type: MimeKitHeaderId
The header identifier.
value
Type: SystemString
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