TnefWriterWriteAttribute(TnefAttributeTag, Byte, Int32, Int32) Method

Write an attribute with a raw value.

Definition

Namespace: MimeKit.Tnef
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public void WriteAttribute(
	TnefAttributeTag tag,
	byte[] buffer,
	int startIndex,
	int length
)

Parameters

tag  TnefAttributeTag
The attribute tag.
buffer  Byte
The buffer containing the value.
startIndex  Int32
The index of the first byte of the value.
length  Int32
The length of the value.

Remarks

Writes an attribute with the specified raw value.

Exceptions

ArgumentNullException buffer is .
ArgumentOutOfRangeException startIndex and length do not specify a valid range in the buffer.
ArgumentException tag is not an attribute that can be written.
ObjectDisposedException The writer has been disposed.
InvalidOperationException

The attribute cannot be written at this point in the stream.

-or-

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

IOException An I/O error occurred.

See Also