TnefMessageBodyOpenRead Method

Open a stream for reading the raw content.

Definition

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

Return Value

Stream
The content stream.

Remarks

Opens a stream for reading the raw content of the body, exactly as it was stored in the TNEF stream. The content of a CompressedRtf body is compressed; use OpenDecodedRead to read the decompressed RTF.

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