Dart.Emulation Namespace > Telnet Class : CommandReceived Event |
Public Event CommandReceived As EventHandler(Of CommandEventArgs)
Dim instance As Telnet Dim handler As EventHandler(Of CommandEventArgs) AddHandler instance.CommandReceived, handler
public event EventHandler<CommandEventArgs> CommandReceived
public: __event EventHandler<CommandEventArgs*>* CommandReceived
public: event EventHandler<CommandEventArgs^>^ CommandReceived
The event handler receives an argument of type CommandEventArgs containing data related to this event. The following CommandEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Command | The command sent by the remote host. |
OptionCode | The option pertaining to the received command. |
SubOption | Suboption pertaining to the received command. |
A CommandEventArgs object containing information required to handle the command is provided to the event handler. For example, CommandEventArgs.Command contains the Command sent from the server.
If a reply is sent to the server using SendOption from within the event handler, it is assumed option negotiation will be handled by the developer and automatic option negotiation is turned off.
This event is not marshaled to the UI thread, even if the SynchronizingObject is set.