Click or drag to resize
MimeKit

HeaderSetValue Method (Encoding, String)

Sets the header value using the specified character encoding.

Namespace:  MimeKit
Assembly:  MimeKit (in MimeKit.dll) Version: 3.0.0
Syntax
C#
public void SetValue(
	Encoding encoding,
	string value
)

Parameters

encoding
Type: System.TextEncoding
A character encoding.
value
Type: SystemString
The header value.
Exceptions
ExceptionCondition
ArgumentNullException

encoding is null.

-or-

value is null.

Remarks
When a particular charset is desired for encoding the header value according to the rules of rfc2047, this method should be used instead of the Value setter.
See Also