Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MaxRequestContentBufferSize Property

HttpClientHandler.MaxRequestContentBufferSize Property

.NET Framework 4.6 and 4.5

Gets or sets the maximum request content buffer size used by the handler.

Namespace:  System.Net.Http
Assembly:  System.Net.Http (in System.Net.Http.dll)

Public Property MaxRequestContentBufferSize As Long

Property Value

Type: System.Int64
Returns Int32.
The maximum request content buffer size in bytes. The default value is 2 gigabytes.

An app can set the MaxRequestContentBufferSize property to a lower value to limit the size of the request buffer. If the size of the request content is greater than the MaxRequestContentBufferSize property, an exception is thrown.

.NET Framework

Supported in: 4.6, 4.5

.NET for Windows Phone apps

Supported in: Windows Phone 8.1
© 2015 Microsoft