Pop3.SendCommandAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Pop3.dll (version 7.0.9083)
SendCommandAsync(String, Boolean, Object)
Begins asynchronous SendCommand operation. Sends a custom command to the POP3 server.
Declaration
public Task SendCommandAsync(string command, bool multiline, object state = null)
Parameters
Type | Name | Description |
---|---|---|
String | command | Command (e.g. "HELP"). |
Boolean | multiline | Indicates whether the response for the command is multiline or single line. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task |
Remarks
Must be followed by either one or more calls to ReadResponse method, depending on the value of multiline parameter.
Use ReadResponse and SendCommand to implement various custom commands.