TnefMessageBodyOpenDecodedRead Method

Open a stream for reading the decoded content.

Definition

Namespace: MimeKit.Tnef
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public Stream OpenDecodedRead()

Return Value

Stream
The decoded content stream.

Remarks

Opens a stream for reading the decoded content of the body. For a CompressedRtf body, this is the decompressed RTF. For any other body, it is the same as the raw content returned by OpenRead.

A CompressedRtf body whose compression type is neither Compressed nor Uncompressed cannot be decoded, so the stream is empty (see CompressionMode).

Each call returns a new, independent stream. The stream must be disposed by the caller, and must not be used once the body has been disposed.

Exceptions

ObjectDisposedException The body has been disposed.

See Also