TextPreviewerGetPreviewText(Stream, Encoding) Method

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

Definition

Namespace: MimeKit.Text
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
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.

Remarks

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

Exceptions

ArgumentNullException

stream is .

-or-

encoding is .

See Also