Header(String, HeaderId, String) Constructor

Initialize a new instance of the Header class.

Definition

Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public Header(
	string charset,
	HeaderId id,
	string value
)

Parameters

charset  String
The charset that should be used to encode the header value.
id  HeaderId
The header identifier.
value  String
The value of the header.

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.

Exceptions

ArgumentNullException

charset is .

-or-

value is .

ArgumentOutOfRangeException id is not a valid HeaderId.
NotSupportedException charset is not supported.

See Also