Tnef AttachmentOpen Read Method
Open a stream for reading the attachment's content.
Definition
Namespace: MimeKit.Tnef
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
The content stream, which is empty if the attachment has no content.
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public Stream OpenRead()Return Value
StreamThe content stream, which is empty if the attachment has no content.
Remarks
Opens a stream for reading the attachment's content.
The 16-byte interface identifier that prefixes a Object value is not included. For an embedded message, the content is the embedded TNEF stream.
Each call returns a new, independent stream. The stream must be disposed by the caller, and must not be used once the attachment has been disposed.
Exceptions
| ObjectDisposedException | The attachment has been disposed. |