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. Result codes are three-digit numeric values returned by the server and may be broken down into the following ranges:

Value Description
100-199 Positive preliminary result. This indicates that the requested action is being initiated, and the client should expect another reply from the server before proceeding.
200-299 Positive completion result. This indicates that the server has successfully completed the requested action.
300-399 Positive intermediate result. This indicates that the requested action cannot complete until additional information is provided to the server.
400-499 Transient negative completion result. This indicates that the requested action did not take place, but the error condition is temporary and may be attempted again.
500-599 Permanent negative completion result. This indicates that the requested action did not take place.

It is important to note that while some result codes have become standardized, not all servers respond to commands using the same result codes. For example, one server may respond with a result code of 221 to indicate success, while another may respond with a value of 235. It is recommended that applications check for ranges of values to determine if a command was successful, not a specific value.

Data Type

Integer (Int32)

See Also

ResultString Property, Command Method, OnCommand Event