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




e
A CommandEventArgs.
Raises the CommandReceived event.

Syntax

Visual Basic (Declaration) 
Protected Overridable Sub OnCommandReceived( _
   ByVal e As CommandEventArgs _
) 
Visual Basic (Usage)Copy Code
Dim instance As Telnet
Dim e As CommandEventArgs
 
instance.OnCommandReceived(e)
C# 
protected virtual void OnCommandReceived( 
   CommandEventArgs e
)
Managed Extensions for C++ 
protected: virtual void OnCommandReceived( 
   CommandEventArgs* e
) 
C++/CLI 
protected:
virtual void OnCommandReceived( 
   CommandEventArgs^ e
) 

Parameters

e
A CommandEventArgs.

Remarks

Raising an event invokes the event handler through a delegate.

The OnCommandReceived method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

Note to Inheritors: When overriding OnCommandReceived in a derived class, be sure to call the base class OnCommandReceived method, so that registered delegates receive the event.

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.