Return the result code of the previous action.
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:
|Positive preliminary result. This indicates that the
requested action is being initiated, and the client should
expect another reply from the server before proceeding.
|Positive completion result. This indicates that the server
has successfully completed the requested action.
|Positive intermediate result. This indicates that the
requested action cannot complete until additional information
is provided to the server.
|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.
|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.