An NDoc Documented Class Library

ExFTPConnection.SynchronizingFile Event

Triggered when a decision is being made on how to synchronize a particular file (i.e. transfer, delete or skip).

public event FTPSyncFileEventHandler SynchronizingFile;

Event Data

The event handler receives an argument of type FTPSyncFileEventArgs containing data related to this event. The following FTPSyncFileEventArgs properties provide information specific to this event.

Property Description
Action Action to apply.
ConnectionInstanceNumber Identifies the pooled connection on which the task is running.
IsGuiThread Indicates whether or not the event-handler has been invoked on the GUI thread.
LocalFile Reference to an FTPFile object representing the local file.
LocalFileExists Does the local file exist?
RemoteFile Reference to an FTPFile object representing the remote file.
RemoteFileExists Does the remote file exist?
SynchronizationRules Rules for synchronization.
TaskID Identifies the asynchronous operation within which the event was triggered (applies to asynchronous methods only).

Remarks

This event may be used to set the action that is to be taken during the synchronization operation. The event arguments (FTPSyncFileEventHandler) gives access to information about each file, including name, path, date and size. These may be used to decide what sort of action should be taken, which is done by setting the Action property.

See Also

ExFTPConnection Class | EnterpriseDT.Net.Ftp Namespace