FileStreamOptions.BufferSize 屬性

定義

用於緩衝的緩衝區 FileStream 大小。 預設緩衝區大小為 4096。 0 或 1 表示應該停用緩衝處理。 不允許負值。

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

屬性值

非負數,表示用於緩衝的 FileStream 緩衝區大小。

例外狀況

當 為負數時 value

適用於