IImap ClientIdentify Async Method
Asynchronously identify the client implementation to the server and obtain the server implementation details.
Definition
Namespace: MailKit.Net.Imap
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
The implementation details of the server if available; otherwise, .
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
Task<ImapImplementation> IdentifyAsync(
ImapImplementation clientImplementation,
CancellationToken cancellationToken = default
)Parameters
- clientImplementation ImapImplementation
- The client implementation.
- cancellationToken CancellationToken (Optional)
- The cancellation token.
Return Value
TaskImapImplementationThe implementation details of the server if available; otherwise, .
Remarks
Passes along the client implementation details to the server while also obtaining implementation details from the server.
If the clientImplementation is or no properties have been set, no identifying information will be sent to the server.
Exceptions
| ObjectDisposedException | The ImapClient has been disposed. |
| ServiceNotConnectedException | The ImapClient is not connected. |
| NotSupportedException | The IMAP server does not support the ID extension. |
| OperationCanceledException | The operation was canceled via the cancellation token. |
| IOException | An I/O error occurred. |
| ImapCommandException | The server replied to the ID command with a NO or BAD response. |
| ImapProtocolException | An IMAP protocol error occurred. |