Rfc2047EncodeText(Encoding, String) Method

Encode unstructured text.

Definition

Namespace: MimeKit.Utils
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public static byte[] EncodeText(
	Encoding charset,
	string text
)

Parameters

charset  Encoding
The charset encoding.
text  String
The text to encode.

Return Value

Byte
The encoded text.

Remarks

Encodes the unstructured text according to the rules of rfc2047 using the specified charset encoding.

Exceptions

ArgumentNullException

charset is .

-or-

text is .

See Also