TnefPropertyReaderReadNextProperty Method

Advance to the next property.

Definition

Namespace: MimeKit.Tnef
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public bool ReadNextProperty(
	CancellationToken cancellationToken = default
)

Parameters

cancellationToken  CancellationToken  (Optional)
The cancellation token.

Return Value

Boolean
if the reader was advanced to the next property; otherwise, .

Remarks

Advances to the next property. Any values of the current property that have not been read are skipped.

When this method returns , the reader is positioned on the first value of the property, unless the property has no values (see ValueCount).

For a RecipientTable attribute, this method returns the properties of the current row and returns until ReadNextRow(CancellationToken) has been called.

Exceptions

ObjectDisposedException The TnefReader has been disposed.
InvalidOperationException The TnefReader has been advanced to another attribute.
OperationCanceledException The operation was canceled via the cancellation token.
IOException An I/O error occurred.

See Also