IText PartSet Text(String, String) Method
Set the text content and the charset parameter in the Content-Type header.
Definition
Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
void SetText(
string charset,
string text
)Parameters
Remarks
This method is similar to setting the Text property,
but allows specifying a charset encoding to use. Also updates the
Charset property.
Exceptions
| ArgumentNullException |
charset is . -or- text is . |
| NotSupportedException | The charset is not supported. |
| ObjectDisposedException | The ITextPart has been disposed. |