PowerTCP SSH and SFTP for .NET
OnData Method




A DataEventArgs object that contains the event data.
Raises the Data event.
Syntax
'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
) 

Parameters

e
A DataEventArgs object that contains the event data.
Remarks
Raising an event invokes the event handler through a delegate. The Synchronizing property must be set to marshal data from a worker thread to the UI thread.

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.

See Also

Reference

Ssh Class
Ssh Members


PowerTCP SSH and SFTP for .NET Documentation Version 7.0
© 2023 Dart Communications. All Rights Reserved.
Send comments on this topic