Click or drag to resize
MimeKit

HeaderFormatRawValue Method

Format the raw value of the header to conform with the specified formatting options.

Namespace: MimeKit
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
protected virtual byte[] FormatRawValue(
	FormatOptions format,
	Encoding encoding,
	string value
)

Parameters

format  FormatOptions
The formatting options.
encoding  Encoding
The character encoding to be used.
value  String
The decoded (and unfolded) header value.

Return Value

Byte
A byte array containing the raw header value that should be written.
Remarks

This method is called by the SetValue methods.

This method should encode unicode characters according to the rules of rfc2047 (when International is false) as well as properly folding the value to conform with rfc5322.

See Also