Click or drag to resize
MimeKit

HeaderSetValue Method (FormatOptions, String, String)

Sets the header value using the specified formatting options and charset.

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

Parameters

format
Type: MimeKitFormatOptions
The formatting options.
charset
Type: SystemString
A charset encoding.
value
Type: SystemString
The header value.
Exceptions
ExceptionCondition
ArgumentNullException

format is null.

-or-

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