Click or drag to resize
MimeKit

TextPartGetText Method (String)

Gets 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: 3.0.0
Syntax
C#
public string GetText(
	string charset
)

Parameters

charset
Type: SystemString
The charset encoding to use.

Return Value

Type: String
The decoded text.
Exceptions
ExceptionCondition
ArgumentNullExceptioncharset 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