共用方式為


MvcNewtonsoftJsonOptions.InputFormatterMemoryBufferThreshold 屬性

定義

取得未設定時 SuppressInputFormatterBuffering ,在記憶體中緩衝的大小上限。

NewtonsoftJsonInputFormatter 根據預設,會緩衝輸入資料流程,在緩衝至磁片之前,在記憶體中緩衝處理最多一定數量。 此選項會設定 MVC 在記憶體中緩衝的位元組大小,再切換至磁片。

public:
 property int InputFormatterMemoryBufferThreshold { int get(); void set(int value); };
public int InputFormatterMemoryBufferThreshold { get; set; }
member this.InputFormatterMemoryBufferThreshold : int with get, set
Public Property InputFormatterMemoryBufferThreshold As Integer

屬性值

預設值為 30Kb。

適用於