Click or drag to resize

ImapSendCommandAsync(String, CancellationToken) Method

Sends command and waits for the server response.

Namespace: Limilabs.Client.IMAP
Assembly: Mail (in Mail.dll) Version: 3.0.26106.1555
Syntax
public Task<ImapResponse> SendCommandAsync(
	string command,
	CancellationToken cancel = default
)

Parameters

command  String
Command e.g. "NOOP".
cancel  CancellationToken  (Optional)
A cancellation token that can be used to signal the asynchronous operation should be canceled.

Return Value

TaskImapResponse
IMAP response object.
Exceptions
ExceptionCondition
ImapResponseExceptionThrows ImapResponseException on error response.
Remarks
Most commands have their own specialized methods in this class, you should probably use them instead.
See Also