Click or drag to resize

ImapSendCommandAsync(String, Boolean, 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,
	bool throwException,
	CancellationToken cancel = default
)

Parameters

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

Return Value

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