MailKit Documentation
MailKit Documentation
API Reference
MimeKit
TextPart Class
TextPart Methods
GetText Method
GetText(Encoding) Method
GetText(Encoding) Method
GetText(String) Method
Text
Part
Get
Text(String) Method
Get the decoded text content using the provided charset to override the charset specified in the Content-Type parameters.
Namespace:
MimeKit
Assembly:
MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
Copy
public
string
GetText
(
string
charset
)
Parameters
charset
String
The charset encoding to use.
Return Value
String
The decoded text.
Implements
ITextPart
GetText(String)
Exceptions
Exception
Condition
ArgumentNullException
charset
is
null
.
NotSupportedException
The
charset
is not supported.
ObjectDisposedException
The
TextPart
has been disposed.
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.
See Also
Reference
TextPart Class
GetText Overload
MimeKit Namespace
Copyright © 2013-2023 Jeffrey Stedfast
Send comments on this topic to
Jeffrey Stedfast