MailKit.Net.Imap.ImapClient.EnableUTF8Async C# (CSharp) Method

EnableUTF8Async() public method

Enable the UTF8=ACCEPT extension.
Enables the UTF8=ACCEPT extension.
/// The has been disposed. /// /// The is not connected. /// /// The is not authenticated. /// /// UTF8=ACCEPT needs to be enabled before selecting a folder. /// /// The IMAP server does not support the UTF8=ACCEPT extension. /// /// The operation was canceled via the cancellation token. /// /// An I/O error occurred. /// /// The server replied to the ENABLE command with a NO or BAD response. /// /// An IMAP protocol error occurred. ///
public EnableUTF8Async ( CancellationToken cancellationToken = default(CancellationToken) ) : System.Threading.Task
cancellationToken System.Threading.CancellationToken The cancellation token.
return System.Threading.Task
		public Task EnableUTF8Async (CancellationToken cancellationToken = default (CancellationToken))
		{
			return Task.Factory.StartNew (() => {
				lock (SyncRoot) {
					EnableUTF8 (cancellationToken);
				}
			}, cancellationToken, TaskCreationOptions.None, TaskScheduler.Default);
		}