Rfc 2047Decode Text(Parser Options, Byte, Int 32, Int 32) Method
Decode unstructured text.
Definition
Namespace: MimeKit.Utils
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
The decoded text.
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public static string DecodeText(
ParserOptions options,
byte[] text,
int startIndex,
int count
)Parameters
- options ParserOptions
- The parser options to use.
- text Byte
- The text to decode.
- startIndex Int32
- The starting index.
- count Int32
- The number of bytes to decode.
Return Value
StringThe decoded text.
Remarks
Decodes the unstructured text buffer starting at the given index and spanning
across the specified number of bytes using the supplied parser options.
Exceptions
| ArgumentNullException |
options is . -or- text is . |
| ArgumentOutOfRangeException | startIndex and count do not specify a valid range in the byte array. |