Tnef Property ReaderRead Next Property Async Method
Asynchronously advance to the next property.
Definition
Namespace: MimeKit.Tnef
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
if the reader was advanced to the next property; otherwise, .
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public Task<bool> ReadNextPropertyAsync(
CancellationToken cancellationToken = default
)Parameters
- cancellationToken CancellationToken (Optional)
- The cancellation token.
Return Value
TaskBooleanif 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 ReadNextRowAsync(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. |