TnefPropertyWriterWriteValue(Byte) Method

Write a binary value.

Definition

Namespace: MimeKit.Tnef
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public void WriteValue(
	byte[] buffer
)

Parameters

buffer  Byte
The value.

Remarks

Writes a value of a Binary or Object property.

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

Exceptions

ArgumentNullException buffer is .
ArgumentException The value of an Object property is shorter than 16 bytes.
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