YEnc ReaderRead Next Async Method
Asynchronously read the next yEnc header.
Definition
Namespace: MimeKit.Encodings
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
True if a block was found; false at end of input.
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public Task<bool> ReadNextAsync(
CancellationToken cancellationToken = default
)Parameters
- cancellationToken CancellationToken (Optional)
- The cancellation token.
Return Value
TaskBooleanTrue if a block was found; false at end of input.
Remarks
Skips surrounding text. Decode the current block before calling again.
Exceptions
| FormatException | A header is malformed, incomplete, or exceeds a configured limit. |
| InvalidOperationException | The current block has not been decoded, or the reader has faulted. |
| ObjectDisposedException | The reader is disposed. |
| OperationCanceledException | The operation was canceled. |
| IOException | An I/O error occurred. |