 | ImapSendCommandAsync Method (String, Boolean) |
Sends command and waits for the server response.
Namespace:
Limilabs.Client.IMAP
Assembly:
Mail (in Mail.dll) Version: 3.0.23341.1754
Syntaxpublic Task<ImapResponse> SendCommandAsync(
string command,
bool throwException
)
Public Function SendCommandAsync (
command As String,
throwException As Boolean
) As Task(Of ImapResponse)
public:
Task<ImapResponse^>^ SendCommandAsync(
String^ command,
bool throwException
)
member SendCommandAsync :
command : string *
throwException : bool -> Task<ImapResponse>
Parameters
- command
- Type: SystemString
Command e.g. "NOOP". - throwException
- Type: SystemBoolean
If true throws ImapResponseException on error response.
Return Value
Type:
TaskImapResponseIMAP response object.
Remarks
Most commands have their own specialized methods in this class, you should probably use them instead.
See Also