 | Header Constructor (Encoding, String, String) |
Initialize a new instance of the
Header class.
Namespace:
MimeKit
Assembly:
MimeKit (in MimeKit.dll) Version: 3.0.0
Syntaxpublic Header(
Encoding encoding,
string field,
string value
)
Parameters
- encoding
- Type: System.TextEncoding
The character encoding that should be used
to encode the header value. - field
- Type: SystemString
The name of the header field. - value
- Type: SystemString
The value of the header.
Exceptions
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