MvcNewtonsoftJsonOptions.OutputFormatterMemoryBufferThreshold Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the maximum size to buffer in memory when SuppressOutputFormatterBuffering is not set.
NewtonsoftJsonOutputFormatter buffers the output stream by default, buffering up to a certain amount in memory, before buffering to disk. This option configures the size in bytes that MVC will buffer in memory, before switching to disk.
public int OutputFormatterMemoryBufferThreshold { get; set; }
member this.OutputFormatterMemoryBufferThreshold : int with get, set
Public Property OutputFormatterMemoryBufferThreshold As Integer
Property Value
Defaults to 30Kb.