TnefPropertyReaderOpenValueStream Method

Open a stream for reading the current value.

Definition

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

Return Value

Stream
The value stream.

Remarks

Opens a stream for reading the raw data of the current string, binary or object value.

The stream is only valid until the reader is advanced to another value.

Exceptions

ObjectDisposedException The TnefReader has been disposed.
InvalidOperationException

The TnefReader has been advanced to another attribute.

-or-

The reader is not positioned on a value.

-or-

The value is not a variable-length value.

-or-

The value has already been read.

See Also