Share via


MvcNewtonsoftJsonOptions.OutputFormatterMemoryBufferThreshold 屬性

定義

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

NewtonsoftJsonOutputFormatter 預設會緩衝輸出資料流程,在緩衝處理至磁片之前,在記憶體中緩衝到特定數量。 此選項會設定 MVC 在記憶體中緩衝的位元組大小,再切換至磁片。

public int OutputFormatterMemoryBufferThreshold { get; set; }
member this.OutputFormatterMemoryBufferThreshold : int with get, set
Public Property OutputFormatterMemoryBufferThreshold As Integer

屬性值

預設值為 30Kb。

適用於