Back to product page

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:
Args.PositionLong value. Current position within current file transfer.
Args.TotalLong 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:
Args.PositionLong value. Current position within current file transfer.
Args.TotalLong 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.

Platforms

Windows