Text PreviewerGet Preview Text(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
A string representing a shortened preview of the original text.
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public virtual string GetPreviewText(
Stream stream,
Encoding encoding
)Parameters
Return Value
StringA 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 . |