TnefPropertyWriterOpenValueStream Method

Open a stream for writing a binary 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 writing a value of a Binary or Object property.

An Object value must begin with the 16-byte interface identifier of the object.

The value is completed when the stream is disposed. No other value or property may be written until then.

Exceptions

ObjectDisposedException The property writer has been disposed.
InvalidOperationException

The current property is not a Binary or Object property.

-or-

The current property already has a value.

-or-

The stream or writer for the previous value has not been disposed.

See Also