The event handler receives an argument of type TransferringFileEventArgs containing data related to this event. The following TransferringFileEventArgs properties provide information specific to this event.
Property | Description |
---|---|
LocalFilename | Gets the path and filename of the local file. |
RemoteFilename | Gets the filename of the remote file. |
The following example demonstrates how to use the SendingFile event to display the name of the
file(s) being sent to the FTP server.
This example assumes that you are in a Windows application and that the form contains a listbox.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2