HttpClientHandler.MaxRequestContentBufferSize Property

.NET Framework (current version)
 

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 long MaxRequestContentBufferSize { get; set; }

Property Value

Type: System.Int64

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.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Return to top
Show: