Click or drag to resize
MimeKit

TextPreviewerGetPreviewText(Stream, Encoding) Method

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

Namespace: MimeKit.Text
Assembly: MimeKit (in MimeKit.dll) Version: 4.3.0
Syntax
C#
public virtual string GetPreviewText(
	Stream stream,
	Encoding encoding
)

Parameters

stream  Stream
The original text stream.
encoding  Encoding
The encoding of the stream.

Return Value

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

stream is null.

-or-

encoding is null.

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