Tnef Property ReaderRead Next Value Method
Advance to the next value of the current property.
Definition
Namespace: MimeKit.Tnef
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
if the reader was advanced to the next value; otherwise, .
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public bool ReadNextValue(
CancellationToken cancellationToken = default
)Parameters
- cancellationToken CancellationToken (Optional)
- The cancellation token.
Return Value
Booleanif the reader was advanced to the next value; otherwise, .
Remarks
Advances to the next value of the current (multi-valued) property. Any part of the current value that has not been read is skipped.
Since the reader is already positioned on the first value of a property by ReadNextProperty(CancellationToken), the values of a property are typically read using a do { ... } while (reader.ReadNextValue ()) loop.
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. |