TextPreviewerGetPreviewText(Stream, String) Method

Get a text preview of a stream of text in the specified charset.

Definition

Namespace: MimeKit.Text
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public virtual string GetPreviewText(
	Stream stream,
	string charset
)

Parameters

stream  Stream
The original text stream.
charset  String
The charset encoding of the stream.

Return Value

String
A string representing a shortened preview of the original text.

Remarks

Get a text preview of a stream of text in the specified charset.

Exceptions

ArgumentNullException

stream is .

-or-

charset is .

See Also