TextPartGetText(String) Method

Get the decoded text content using the provided charset to override the charset specified in the Content-Type parameters.

Definition

Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public string GetText(
	string charset
)

Parameters

charset  String
The charset encoding to use.

Return Value

String
The decoded text.

Implements

ITextPartGetText(String)

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 charset is .
NotSupportedException The charset is not supported.
ObjectDisposedException The TextPart has been disposed.

See Also