TnefWriterOpenPropertyWriter Method

Open a property writer for an attribute that contains MAPI properties.

Definition

Namespace: MimeKit.Tnef
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public TnefPropertyWriter OpenPropertyWriter(
	TnefAttributeTag tag
)

Parameters

tag  TnefAttributeTag
The attribute tag.

Return Value

TnefPropertyWriter
The property writer.

Remarks

Opens a TnefPropertyWriter for writing the properties of a MapiProperties, RecipientTable or Attachment attribute.

The properties are buffered using TemporaryStreamFactory until the property writer is disposed. No other attribute may be written until the property writer has been disposed.

Exceptions

ArgumentException tag is not an attribute that contains MAPI properties.
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.

-or-

The temporary stream factory returned an invalid stream.

IOException An I/O error occurred.

See Also