Back to product page
- Introduction
- License agreement
- Classes
- Enumerations
- Exceptions
- WeOnlyDo.Client.FtpDLX
- Properties
- Authentication
- Blocking
- BufferSize
- Certificate
- Compression
- DirFormat
- DirItems
- Encryption
- Hostname
- KeepAlive
- LastError
- ListItem
- ListParams
- LocalPath
- Login
- MaxTransferRate
- Passive
- Password
- Port
- PreserveDates
- PrivateKey
- Protocol
- ProxyHostname
- ProxyLogin
- ProxyPassword
- ProxyPort
- ProxyType
- PublicKeyOpenSSH
- PublicKeySSH
- RemotePath
- Resume
- SecureMethod
- SmartGet
- SmartPut
- State
- StrictHost
- Tag
- Timeout
- Timezone
- TransferMode
- TransferRate
- TransferTime
- UseIPv6
- Version
- Methods
- Events
- Properties
- WeOnlyDo.Client.DirItemsCollection
- WeOnlyDo.Client.DirItem
- How to get support?
LoopErrorEvent event
Fires after wodFtpDLX.NET performs operation on item and error occurs.
Syntax
- C#
- VB.NET
delegate void LoopDelegate(object Sender, FtpLoopArgs Args);
The LoopErrorEvent(Args.Error,Args.ItemType,Args.LocalFile,Args.RemoteFile,Args.Skip) syntax has these parts:
The LoopErrorEvent(Args.Error,Args.ItemType,Args.LocalFile,Args.RemoteFile,Args.Skip) syntax has these parts:
Args.Error | Exception. Contains exception object, if error occurred. |
Args.ItemType | DirItemTypes enumeration. Type of the item - file, folder, symbolic link. |
Args.LocalFile | String. Full path to file/folder on local disk. |
Args.RemoteFile | String. Full path to file/folder on remote server. |
Args.Skip | Boolean. When set to True then intended operation is not performed on the item. |
Delegate Sub LoopDelegate(ByVal Sender As Object, ByVal Args As FtpLoopArgs)
The LoopErrorEvent(Args.Error,Args.ItemType,Args.LocalFile,Args.RemoteFile,Args.Skip) syntax has these parts:
The LoopErrorEvent(Args.Error,Args.ItemType,Args.LocalFile,Args.RemoteFile,Args.Skip) syntax has these parts:
Args.Error | Exception. Contains exception object, if error occurred. |
Args.ItemType | DirItemTypes enumeration. Type of the item - file, folder, symbolic link. |
Args.LocalFile | String. Full path to file/folder on local disk. |
Args.RemoteFile | String. Full path to file/folder on remote server. |
Args.Skip | Boolean. When set to True then intended operation is not performed on the item. |
Remarks
LoopError event is fired as result of error that occurred during execution of GetFiles/PutFiles/DeleteFiles/LoopFiles methods. Since those methods are working with many files/folders in a sequence, error may occur while, for example, creating directory, accessing files (like permission problems) etc.. When an error happens, this event is fired and error is provided in Args.Error argument. You can now evaluate the error to determine why your method failed.You are allowed to set Args.Error = null (Nothing in VB)inside this event, which would cause method to continue performing its work on rest of items, completely ignoring the error. If you don't set Args.Error to null, then method will return immediately with the error as soon as you leave this event.