'Declaration Public Shared Property DefaultStreamBufferSize As Integer
'Usage Dim value As Integer AbstractFile.DefaultStreamBufferSize = value value = AbstractFile.DefaultStreamBufferSize
public static int DefaultStreamBufferSize {get; set;}
'Declaration Public Shared Property DefaultStreamBufferSize As Integer
'Usage Dim value As Integer AbstractFile.DefaultStreamBufferSize = value value = AbstractFile.DefaultStreamBufferSize
public static int DefaultStreamBufferSize {get; set;}
Methods like the default implementation of GetStreamBufferSize query this property.
Changing this value has the potential to affect every class that derives from AbstractFile.
An ArgumentException will be thrown if the property is set to a value less than or equal to zero.
Care must be taken when choosing a buffer size. If the value is too small, the loop count and the number of function calls increase, impacting performance. If the value is too large memory can be used up with no improvements in performance.
In most cases, it is not necessary to modify the default value of this property.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2