MvcNewtonsoftJsonOptions.InputFormatterMemoryBufferThreshold 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得未設定時 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。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應