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?
ProgressEvent event
Fires during file sending or receiving.
Syntax
- C#
- VB.NET
delegate void ProgressDelegate(object Sender, FtpProgressArgs Args);
The ProgressEvent(Args.Position,Args.Total) syntax has these parts:
The ProgressEvent(Args.Position,Args.Total) syntax has these parts:
Args.Position | Long value. Current position within current file transfer. |
Args.Total | Long value. Total number of bytes that should be transferred. |
Delegate Sub ProgressDelegate(ByVal Sender As Object, ByVal Args As FtpProgressArgs)
The ProgressEvent(Args.Position,Args.Total) syntax has these parts:
The ProgressEvent(Args.Position,Args.Total) syntax has these parts:
Args.Position | Long value. Current position within current file transfer. |
Args.Total | Long value. Total number of bytes that should be transferred. |
Remarks
This event can be used for monitoring file transfers. It is fired during file transfer started by GetFile or PutFile methods. It will be fired several times, depending on your network speed (thus length of packets sent/received), file size, or something else. There is no default rule on exact number of times it will be fired. Once transfer is finished, Args.Position argument will have the same value as Args.Total argument.Also, once file transfer is finished Done event will be fired.