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: 3.0.0
Syntax
C#
protected virtual byte[] FormatRawValue(
	FormatOptions format,
	Encoding encoding,
	string value
)

Parameters

format
Type: MimeKitFormatOptions
The formatting options.
encoding
Type: System.TextEncoding
The character encoding to be used.
value
Type: SystemString
The decoded (and unfolded) header value.

Return Value

Type: Byte
A byte array containing the raw header value that should be written.
Remarks
This method will called by the SetValue methods and may also be conditionally called when the header is being written to a Stream.
See Also