NetTcpBindingElement.MaxBufferSize Property

 

Gets or sets a value that specifies the maximum size, in bytes, of the buffer used to store messages in memory.

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

[ConfigurationPropertyAttribute("maxBufferSize", DefaultValue = 65536)]
[IntegerValidatorAttribute(MinValue = 1)]
public int MaxBufferSize { get; set; }

Property Value

Type: System.Int32

The maximum size, in bytes, of the buffer used to store messages in memory. The default is 65536.

If the buffer is full, excess data remains in the underlying socket until the buffer has space again.

This value cannot be less than MaxReceivedMessageSize, whose default value is also 65,536 (64 KB).

.NET Framework
Available since 3.0
Return to top
Show: