Method OpenRead
OpenRead()
Opens a read-only stream over the attachment's content, from its start, for a caller that keeps or forwards the document as it was received.
public Stream OpenRead()
Returns
- Stream
A new stream the caller disposes; reading it leaves the attachment unchanged.
Exceptions
- InvalidOperationException
The attachment holds no byte content (an in-memory image).