Click or drag to resize

ImapCloseAsync(Boolean, CancellationToken) Method

Sends LOGOUT command. Releases all resources acquired by this object.

Namespace: Limilabs.Client.IMAP
Assembly: Mail (in Mail.dll) Version: 3.0.26106.1555
Syntax
public Task CloseAsync(
	bool throwException,
	CancellationToken cancel = default
)

Parameters

throwException  Boolean
If true throws ImapResponseException on error response to LOGOUT command.
cancel  CancellationToken  (Optional)
A cancellation token that can be used to signal the asynchronous operation should be canceled.

Return Value

Task
A task that represents the asynchronous close operation.
See Also