PowerTCP Emulation for .NET CF
CommandReceived Event
See Also  Send comments on this topic.
Dart.Emulation Namespace > Telnet Class : CommandReceived Event




Raised when a Telnet command is received from the server.

Syntax

Visual Basic (Declaration) 
Public Event CommandReceived As CommandEventHandler
Visual Basic (Usage)Copy Code
Dim instance As Telnet
Dim handler As CommandEventHandler
 
AddHandler instance.CommandReceived, handler
C# 
public event CommandEventHandler CommandReceived
Managed Extensions for C++ 
public: __event CommandEventHandler* CommandReceived
C++/CLI 
public:
event CommandEventHandler^ CommandReceived

Event Data

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.

PropertyDescription
Command The command sent by the remote host.
OptionCode The option pertaining to the received command.
SubOption Suboption pertaining to the received command.

Remarks

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.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 4.2
© 2010 Dart Communications. All Rights Reserved.