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。