IText PartGet Text(Encoding) Method
Get the decoded text content using the provided charset encoding to
override the charset specified in the Content-Type parameters.
Definition
Namespace: MimeKit
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#
string GetText(
Encoding encoding
)Parameters
- encoding Encoding
- The charset encoding to use.
Return Value
StringThe decoded text.
Remarks
Uses the provided charset encoding to convert the raw text content
into a unicode string, overriding any charset specified in the
Content-Type header.
Exceptions
| ArgumentNullException | encoding is . |
| ObjectDisposedException | The ITextPart has been disposed. |