PowerTCP FTP for .NET
ProgressSize Property



Specifies the frequency, in bytes, for raising the Progress event.
Syntax
<DefaultValueAttribute(65536)>
Public Property ProgressSize As Integer
Dim instance As FtpSession
Dim value As Integer
 
instance.ProgressSize = value
 
value = instance.ProgressSize
[DefaultValue(65536)]
public int ProgressSize {get; set;}
[DefaultValue(65536)]
public:
property int ProgressSize {
   int get();
   void set (    int value);
}

Property Value

An integer value representing the frequency the Progress event is raised at.
Remarks

A lower value will provide finer granularity for a progress bar, but may saturate the UI thread when larger files are transferred. A larger value will provide fewer Progress events, depending on the needs of the application.

When using blocking techniques, it is possible for some messages on the UI thread to not be processed properly, causing behavior such as button clicks not registering, minimized windows not being able to be restored, etc. To eliminate any such behavior, use non-blocking techniques (i.e. call Ftp.Put, Ftp.Get, etc in methods run on a worker thread by calling Ftp.Start).

See Also

Reference

FtpSession Class
FtpSession Members


PowerTCP FTP for .NET Documentation Version 6.1
© 2023 Dart Communications. All Rights Reserved.
Send comments on this topic