FileStreamOptions.BufferSize Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The size of the buffer used by FileStream for buffering. The default buffer size is 4096. 0 or 1 means that buffering should be disabled. Negative values are not allowed.
public:
property int BufferSize { int get(); void set(int value); };
public int BufferSize { get; set; }
member this.BufferSize : int with get, set
Public Property BufferSize As Integer
Property Value
A non-negative number that represents the buffer size used by FileStream for buffering.
Exceptions
When value
is negative.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.