SocketTools .NET Edition

HttpClient.OnCommand Event

Occurs when the client sends a command to the remote host and receives a reply indicating the result of that command.

[Visual Basic]
Public Event OnCommand As OnCommandEventHandler
[C#]
public event OnCommandEventHandler OnCommand;

Event Data

The event handler receives an argument of type HttpClient.CommandEventArgs containing data related to this event. The following HttpClient.CommandEventArgs properties provide information specific to this event.

Property Description
ResultCode Gets a value which specifies the last result code returned by the server.
ResultString Gets a string value which describes the result of the previous command.

Remarks

The OnCommand event is generated when the client receives a reply from the server after some action has been taken.

See Also

HttpClient Class | SocketTools Namespace