Back to Devexpress

AsyncDownloadPolicy.DefaultResponseContentBufferSizeForHttpClient Field

corelibraries-devexpress-dot-data-dot-asyncdownloadpolicy-56f68e85.md

latest2.6 KB
Original Source

AsyncDownloadPolicy.DefaultResponseContentBufferSizeForHttpClient Field

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

Declaration

csharp
public static int DefaultResponseContentBufferSizeForHttpClient
vb
Public Shared DefaultResponseContentBufferSizeForHttpClient As Integer

Field Value

TypeDescription
Int32

An integer value that specifies the number of bytes to buffer when reading the response content.

|

Remarks

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.

csharp
DevExpress.Data.AsyncDownloadPolicy.DefaultResponseContentBufferSizeForHttpClient = 1024 * 1024 * 4; // 4MB
DevExpress.Data.AsyncDownloadPolicy.DefaulBufferSizeForContentCopy = 1024 * 16; // 16KB
vb
' 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

ConfigureHttpClient

DefaultBufferSizeForContentCopy

AsyncDownloadPolicy Class

AsyncDownloadPolicy Members

DevExpress.Data Namespace