Click or drag to resize
MimeKit

Header Constructor (String, 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(
	string charset,
	HeaderId id,
	string value
)

Parameters

charset
Type: SystemString
The charset that should be used to encode the header value.
id
Type: MimeKitHeaderId
The header identifier.
value
Type: SystemString
The value of the header.
Exceptions
ExceptionCondition
ArgumentNullException

charset is null.

-or-

value is null.

ArgumentOutOfRangeExceptionid is not a valid HeaderId.
NotSupportedExceptioncharset is not supported.
Remarks
Creates a new message or entity header for the specified field and value pair. The encoding is used to determine which charset to use when encoding the value according to the rules of rfc2047.
See Also