HeaderSetValue(FormatOptions, String, String) Method

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

Definition

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

Parameters

format  FormatOptions
The formatting options.
charset  String
A charset encoding.
value  String
The header value.

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.

Exceptions

ArgumentNullException

format is .

-or-

charset is .

-or-

value is .

NotSupportedException charset is not supported.

See Also