Click or drag to resize
MimeKit

TextPreviewerGetPreviewText(Stream, String) Method

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

Namespace: MimeKit.Text
Assembly: MimeKit (in MimeKit.dll) Version: 4.3.0
Syntax
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.
Exceptions
ExceptionCondition
ArgumentNullException

stream is null.

-or-

charset is null.

Remarks
Get a text preview of a stream of text in the specified charset.
See Also