PowerTCP FTP for .NET
OnCopy Method



A CopyEventArgs object that contains the user information.
Raises the Copy event.
Syntax
Protected Overridable Sub OnCopy( _
   ByVal e As CopyEventArgs _
) 
Dim instance As Ftp
Dim e As CopyEventArgs
 
instance.OnCopy(e)
protected virtual void OnCopy( 
   CopyEventArgs e
)
protected:
virtual void OnCopy( 
   CopyEventArgs^ e
) 

Parameters

e
A CopyEventArgs object that contains the user information.
Remarks
If the Synchronizing property is set, this method asynchronously invokes the event on the UI thread. If the Synchronizing property is null, this method invokes the event on the executing thread.

The OnCopy 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, but marshaling is not provided.

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

See the SynchronizingObject property for information on updating UI controls in 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