TnefReaderRead Method

Advance to the next attribute.

Definition

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

Parameters

cancellationToken  CancellationToken  (Optional)
The cancellation token.

Return Value

Boolean
if the reader was advanced to the next attribute; otherwise, if there are no more attributes.

Remarks

Advances the reader to the next attribute in the TNEF stream.

The first call reads the TNEF stream header. If the stream does not begin with the TNEF signature, a InvalidSignature issue is reported and the method returns .

Any part of the current attribute's value that has not been consumed is skipped, and the attribute's checksum is verified.

Exceptions

ObjectDisposedException The reader has been disposed.
OperationCanceledException The operation was canceled via the cancellation token.
IOException An I/O error occurred.

See Also