Tnef Message BodyOpen Read Method
Open a stream for reading the raw content.
Definition
Namespace: MimeKit.Tnef
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
The content stream.
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public Stream OpenRead()Return Value
StreamThe 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. |