corelibraries-devexpress-dot-data-dot-asyncdownloadpolicy-1e6054cd.md
Gets or sets the size of the buffer.
Namespace : DevExpress.Data
Assembly : DevExpress.Data.v25.2.dll
NuGet Package : DevExpress.Data
public static int DefaultBufferSizeForContentCopy
Public Shared DefaultBufferSizeForContentCopy As Integer
| Type | Description |
|---|---|
| Int32 |
The size, in bytes, of the buffer.
|
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