Click or drag to resize
MimeKit

HeaderSetValue(String, String) Method

Set the header value using the specified charset.

Namespace: MimeKit
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public void SetValue(
	string charset,
	string value
)

Parameters

charset  String
A charset encoding.
value  String
The header value.
Exceptions
ExceptionCondition
ArgumentNullException

charset is null.

-or-

value is null.

NotSupportedExceptioncharset is not supported.
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