PowerTCP SSH and SFTP for .NET
OnProgress Method




A ProgressEventArgs that contains the event data.
Raises the Progress event.
Syntax
'Declaration
 
Public Overridable Sub OnProgress( _
   ByVal e As ProgressEventArgs _
) 
'Usage
 
Dim instance As Sftp
Dim e As ProgressEventArgs
 
instance.OnProgress(e)
public virtual void OnProgress( 
   ProgressEventArgs e
)
public: virtual void OnProgress( 
   ProgressEventArgs* e
) 
public:
virtual void OnProgress( 
   ProgressEventArgs^ e
) 

Parameters

e
A ProgressEventArgs that contains the event data.
Remarks
Raising an event invokes the event handler through a delegate. The OnProgress method will be called on the same thread the copy operation is using.

The OnProgress method 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 OnProgress in a derived class, be sure to call the base class OnProgress method so that registered delegates receive the event.

See the ComponentBase.SynchronizingObject property for important information on updating UI controls from within derived classes.

See Also

Reference

Sftp Class
Sftp Members


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