Click or drag to resize
MimeKit

ImapClientEnableUTF8Async Method

Asynchronously enable the UTF8=ACCEPT extension.

Namespace:  MailKit.Net.Imap
Assembly:  MailKit (in MailKit.dll) Version: 2.10.0
Syntax
C#
public Task EnableUTF8Async(
	CancellationToken cancellationToken = null
)

Parameters

cancellationToken (Optional)
Type: System.ThreadingCancellationToken
The cancellation token.

Return Value

Type: Task
An asynchronous task context.

Implements

IImapClientEnableUTF8Async(CancellationToken)
Exceptions
ExceptionCondition
ObjectDisposedException The ImapClient has been disposed.
ServiceNotConnectedException The ImapClient is not connected.
ServiceNotAuthenticatedException The ImapClient is not authenticated.
InvalidOperationException UTF8=ACCEPT needs to be enabled before selecting a folder.
NotSupportedException The IMAP server does not support the UTF8=ACCEPT extension.
OperationCanceledException The operation was canceled via the cancellation token.
IOException An I/O error occurred.
ImapCommandException The server replied to the ENABLE command with a NO or BAD response.
ImapProtocolException An IMAP protocol error occurred.
Remarks
Enables the UTF8=ACCEPT extension.
See Also