Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

Pop3.SendCommandAsync Method

Namespace: Rebex.Net
Assembly: Rebex.Pop3.dll (version 7.0.9147)

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.

In This Article
  • SendCommandAsync(String, Boolean, Object)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies