Tnef Property WriterWrite Value(Byte, Int 32, Int 32) Method
Write a binary value.
Definition
Namespace: MimeKit.Tnef
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public void WriteValue(
byte[] buffer,
int startIndex,
int length
)Parameters
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 . |
| ArgumentOutOfRangeException | startIndex and length do not specify a valid range in the buffer. |
| 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. |