PowerTCP FTP for .NET
OnProgress Method



A ProgressEventArgs object containing event data.
Raises the Progress event.
Syntax
Protected Overridable Sub OnProgress( _
   ByVal e As ProgressEventArgs _
) 
Dim instance As Ftp
Dim e As ProgressEventArgs
 
instance.OnProgress(e)
protected virtual void OnProgress( 
   ProgressEventArgs e
)
protected:
virtual void OnProgress( 
   ProgressEventArgs^ e
) 

Parameters

e
A ProgressEventArgs object containing event data.
Remarks
If the Synchronizing property is set, this method asynchronously invokes the Progress event on the UI thread. If the Synchronizing property is null, this method invokes the event on the executing thread.

The OnProgress method allows derived classes to handle the event without attaching a delegate, but marshaling to the UI thread is not provided. 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 SynchronizingObject property for information on updating UI controls from within your event handler.

See Also

Reference

Ftp Class
Ftp Members


PowerTCP FTP for .NET Documentation Version 6.1
© 2023 Dart Communications. All Rights Reserved.
Send comments on this topic