Dart.Ftp Namespace > FtpSession Class : ProgressSize Property |
<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); }
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).