An NDoc Documented Class Library |

# FTPConnection.RenamingFile Event

Occurs when a remote file is about to be renamed.

public event FTPFileRenameEventHandler RenamingFile;

#### Event Data

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

Property | Description
--- | ---
Cancel | Determines whether or not the operation should be cancelled.
ConnectionInstanceNumber | Identifies the pooled connection on which the task is running.
Exception | The exception thrown if a transfer failed.
IsGuiThread | Indicates whether or not the event-handler has been invoked on the GUI thread.
NewDirectory | Directory of file after the renaming takes place.
NewFileName | Name of file after the renaming takes place.
NewFilePath | Path of file after the renaming takes place.
OldDirectory | Directory of file before the renaming takes place.
OldFileName | Name of file before the renaming takes place.
OldFilePath | Path of file before the renaming takes place.
RenameCompleted | Obsolete. Indicates whether or not the renaming operation has been completed successfully.
Succeeded | Indicates whether or not the transfer succeeded.
TaskID | Identifies the asynchronous operation within which the event was triggered (applies to asynchronous methods only).

#### See Also

FTPConnection Class | EnterpriseDT.Net.Ftp Namespace