Executes a command on the IMAP server.
Namespace:
Rebex.Net
Assembly:
Rebex.Imap (in Rebex.Imap.dll)
Syntax
Visual Basic |
---|
Public Sub SendCommand ( _ command As String, _ ParamArray parameters As Object() _ ) |
C# |
---|
public void SendCommand( string command, params Object[] parameters ) |
Parameters
- command
- Type: System..::..String
Command (e.g. "CAPABILITY").
- parameters
- Type: array<System..::..Object>[]()[][]
List of parameters. Allowed types are String and a byte array.
Remarks
The specified string parameters are send as is. It is caller's responsibility to properly format the parameters.
The specified byte array parameters are send as literals - binary blocks of data.
To use this method properly, some understanding of the IMAP protocol is strongly recommended.
A call to SendCommand MUST be followed by a call to ReadResponse method.
Use ReadResponse and SendCommand to implement various custom commands.