Rfc 2047Encode Text(Format Options, 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(
FormatOptions options,
Encoding charset,
string text
)Parameters
- options FormatOptions
- The formatting options
- charset Encoding
- The charset encoding.
- text String
- The text to encode.
Return Value
ByteThe encoded text.
Remarks
Encodes the unstructured text according to the rules of rfc2047
using the specified charset encoding and formatting options.
Exceptions
| ArgumentNullException |
options is . -or- charset is . -or- text is . |