The ProcessCompleted event is triggered whenever an XceedFtp method has completed its processing, and only if the BackgroundProcessing property is set to True.
The method that just completed is available from the eCompletedState parameter, and the result code that method returned is available from thelResult parameter.
The parameters provided by the ProcessCompleted event are not modifiable.
Parameter | Description |
---|---|
eCompletedState | The state in which the XceedFtp object was while executing the operation that just completed. |
eResult | The method’s return value (member of the EXFError enumeration). |
Enum | Value | Meaning |
---|---|---|
fstConnecting | 1 | The library was attempting to connect to an FTP server (running the Connect method). |
fstChangingFolder | 3 | The library was attempting to change the current working folder (running the ChangeCurrentFolder method). |
fstChangingToParentFolder | 4 | The library was attempting to change the current working folder to the parent folder (running the ChangeToParentFolder method). |
fstChangingUser | 5 | The library was attempting to log in a new user (running the ChangeUser method). |
fstCreatingFolder | 6 | The library was creating a folder on the FTP server (running the CreateFolder method). |
fstDeletingFile | 7 | The library was deleting a file on the FTP server (running the DeleteFile method). |
fstDisconnecting | 8 | The library was attempting to disconnect from the FTP server (running the Disconnect method). |
fstGettingFolderContents | 9 | The library was obtaining a folder contents listing from the FTP server and placing the results in an XceedFtpFolderItems collection (running the GetFolderContents method).. |
fstListingFolderContents | 10 | The library was obtaining a folder contents listing from the FTP server in order to trigger the ListingFolderItem event (running the ListFolderContents method).. |
fstReceivingFile | 11 | The library was receiving a file from the FTP server (running the ReceiveFile method). |
fstReceivingMemoryFile | 12 | The library was receiving a file (to memory) from the FTP server (running the ReceiveMemoryFile method). |
fstReceivingMultipleFiles | 13 | The library was receiving one or more files from the FTP server (running the ReceiveMultipleFiles method). |
fstRemovingFolder | 14 | The library was removing a folder on the FTP server (running the RemoveFolder method). |
fstRenamingFile | 15 | The library was renaming a file on the FTP server (running the RenameFile method). |
fstSendingCommand | 16 | The library was sending a custom command to the FTP server (running the SendCommand method). |
fstSendingFile | 17 | The library was sending a file to the FTP server (running the SendFile method). |
fstSendingMemoryFile | 18 | The library was sending a file (from memory) to the FTP server (running the SendMemoryFile method). |
fstSendingMemoryFileData | 19 | The library was sending a file (from memory) to the FTP server (running SendMemoryFileData method). |
fstSendingMultipleFiles | 20 | The library was sending one or more files to the FTP server (running the SendMultipleFiles method). |
Due to the fact that the ProcessCompleted event is triggered after the completion of the method that caused it to be triggered, your handler for the ProcessCompleted event can call a new XceedFtp method if needed. You can therefore use the ProcessCompleted event to provide you with the opportunity to run one command after another.
Declaration (event) | |
---|---|
|
Declaration (interface implementation) | |
---|---|
|