IImap ClientDisable Notify Async Method
Asynchronously disable any previously requested notification events from the IMAP server.
Definition
Namespace: MailKit.Net.Imap
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
An asynchronous task context.
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
Task DisableNotifyAsync(
CancellationToken cancellationToken = default
)Parameters
- cancellationToken CancellationToken (Optional)
- The cancellation token.
Return Value
TaskAn asynchronous task context.
Remarks
Disables any notification events requested in a prior call to
NotifyAsync(Boolean, IListImapEventGroup, CancellationToken).
request.
Exceptions
| ObjectDisposedException | The ImapClient has been disposed. |
| ServiceNotConnectedException | The ImapClient is not connected. |
| ServiceNotAuthenticatedException | The ImapClient is not authenticated. |
| NotSupportedException | The IMAP server does not support the NOTIFY extension. |
| OperationCanceledException | The operation was canceled via the cancellation token. |
| IOException | An I/O error occurred. |
| ImapCommandException | The server replied to the NOTIFY command with a NO or BAD response. |
| ImapProtocolException | The server responded with an unexpected token. |