PowerTCP SSH and SFTP for .NET
ReadBuffers Property




Gets or sets the number of maximum read commands to queue when a get operation is performed.
Syntax
'Declaration
 
<DefaultValueAttribute(4)>
Public Property ReadBuffers As Integer
'Usage
 
Dim instance As Optimizations
Dim value As Integer
 
instance.ReadBuffers = value
 
value = instance.ReadBuffers
[DefaultValue(4)]
public int ReadBuffers {get; set;}
[DefaultValue(4)]
public: __property int get_ReadBuffers();
public: __property void set_ReadBuffers( 
   int value
);
[DefaultValue(4)]
public:
property int ReadBuffers {
   int get();
   void set (    int value);
}
Exceptions
ExceptionDescription
System.ArgumentOutOfRangeExceptionThe exception that is thrown when the value of an argument is outside the allowable range of values as defined by the invoked method.
Remarks

Defaults to 4. This optimization is the maximum amount of 32kb read requests that will be sent to the server at time. When a get operation is started, the size of the request file is queried and the appropriate number of read requests are sent. For example, if a file is less than 32kb in size, then only one read request will be issued. If a file's size can not be retrieved then a number of read requests equal to this property's value will be issued.

Set to 1 to disable read command queuing.

See BlockSize for notes on perfomance.

Thrown if a value less than 1 is provided.
See Also

Reference

Optimizations Class
Optimizations Members


PowerTCP SSH and SFTP for .NET Documentation Version 8.0
© 2025 Dart Communications. All Rights Reserved.
Send comments on this topic