Rfc 2047Encode Text(Encoding, String) Method
Encode unstructured text.
Definition
Namespace: MimeKit.Utils
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
The encoded text.
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public static byte[] EncodeText(
Encoding charset,
string text
)Parameters
Return Value
ByteThe 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 . |