MaxBufferPoolSize Property

NetTcpBinding.MaxBufferPoolSize Property

 

Gets or sets the maximum size, in bytes, allowed for a buffer pool that stores TCP messages processed by the binding.

Namespace:   System.ServiceModel
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public long MaxBufferPoolSize { get; set; }

Property Value

Type: System.Int64

The maximum size allowed for a buffer pool that stores TCP messages processed by the binding. The default value is 524,288 bytes.

If you receive more data than you can buffer, the data that exceeds the buffer size remains on the underlying socket until your buffer has room for the rest of the data.

This example shows how to get the MaxBufferPoolSize value.

long maxBufferPoolsize = binding.MaxBufferPoolSize;

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Return to top
Show:
© 2016 Microsoft