TnefReaderGetPropertyReader Method

Get a reader for the MAPI properties contained within the current attribute.

Definition

Namespace: MimeKit.Tnef
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public TnefPropertyReader GetPropertyReader()

Return Value

TnefPropertyReader
The property reader.

Remarks

Gets a reader for the MAPI properties contained within the current attribute.

Only the MapiProperties, Attachment and RecipientTable attributes contain MAPI properties.

The property reader is only valid until the reader is advanced to the next attribute. Repeated calls for the same attribute return the same property reader.

Exceptions

ObjectDisposedException The reader has been disposed.
InvalidOperationException

The reader is not positioned on an attribute.

-or-

The current attribute does not contain MAPI properties.

-or-

The attribute's value has already been consumed in some other way.

See Also