Dart.Ssh Namespace > Ssh Class : OnData Method |
'Declaration Protected Overridable Sub OnData( _ ByVal e As SshDataEventArgs _ )
'Usage Dim instance As Ssh Dim e As SshDataEventArgs instance.OnData(e)
protected virtual void OnData( SshDataEventArgs e )
protected: virtual void OnData( SshDataEventArgs* e )
protected: virtual void OnData( SshDataEventArgs^ e )
The OnData 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 OnData in a derived class, be sure to call the base class OnData method, so that registered delegates receive the event.
See the SynchronizingObject property for important information on updating UI controls from within derived classes and events.