ResultCode Property  
 

Return the result code of the previous action.

Syntax

object.ResultCode

Remarks

The ResultCode read-only property returns the result code of the last action performed by the client. This property should be checked after the Command method is used to execute a command on the server to determine if the operation was successful. One of the following result codes may be returned:

Constant Description
imapResultUnknown An unknown result code was returned by the server.
imapResultOk The previous command completed successfully. The result string contains information about the results of the command.
imapResultNo The previous command could not be completed. The result string contains information about why the command failed.
imapResultBad The previous command could not be completed, the command may be invalid or not supported on the server. The result string contains information about why the command failed.
imapResultContinue The command has executed and is waiting for additional data from the client.

Data Type

Integer (Int32)

See Also

ResultString Property, Command Method, OnCommand Event