TnefWriterWriteAttribute(TnefAttributeTag, Byte) 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
)

Parameters

tag  TnefAttributeTag
The attribute tag.
buffer  Byte
The value.

Remarks

Writes an attribute with the specified raw value.

Exceptions

ArgumentNullException buffer is .
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