corelibraries-devexpress-dot-data-dot-asyncdownloadpolicy-56f68e85.md
Specifies the number of bytes to buffer when reading the response content.
Namespace : DevExpress.Data
Assembly : DevExpress.Data.v25.2.dll
NuGet Package : DevExpress.Data
public static int DefaultResponseContentBufferSizeForHttpClient
Public Shared DefaultResponseContentBufferSizeForHttpClient As Integer
| Type | Description |
|---|---|
| Int32 |
An integer value that specifies the number of bytes to buffer when reading the response content.
|
You can also use DefaultResponseContentBufferSizeForHttpClient and DefaultBufferSizeForContentCopy settings to modify values for the static AsyncDownloadPolicy class constants and specify a global limit that can be changed within the ConfigureHttpClient event for individual UI controls.
DevExpress.Data.AsyncDownloadPolicy.DefaultResponseContentBufferSizeForHttpClient = 1024 * 1024 * 4; // 4MB
DevExpress.Data.AsyncDownloadPolicy.DefaulBufferSizeForContentCopy = 1024 * 16; // 16KB
' 4MB
DevExpress.Data.AsyncDownloadPolicy.DefaultResponseContentBufferSizeForHttpClient = 1024 * 1024 * 4
' 16KB
DevExpress.Data.AsyncDownloadPolicy.DefaulBufferSizeForContentCopy = 1024 * 16
Read the following topic for detailed information and examples: Suppress Control Requests to Download Data from External URLs.
See Also