Click or drag to resize
MimeKit

ITextPartSetText(String, String) Method

Set the text content and the charset parameter in the Content-Type header.

Namespace: MimeKit
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
void SetText(
	string charset,
	string text
)

Parameters

charset  String
The charset encoding.
text  String
The text content.
Exceptions
ExceptionCondition
ArgumentNullException

charset is null.

-or-

text is null.

NotSupportedException The charset is not supported.
ObjectDisposedException The ITextPart has been disposed.
Remarks
This method is similar to setting the Text property, but allows specifying a charset encoding to use. Also updates the Charset property.
See Also