Share via


ConnectionOrientedTransportBindingElement.MaxBufferSize Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets the maximum size of the buffer to use.

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

Syntax

'Declaration
Public Property MaxBufferSize As Integer
public int MaxBufferSize { get; set; }

Property Value

Type: System.Int32
The maximum number of bytes that is used to buffer incoming messages in memory. The default value is 65,536 bytes.

Exceptions

Exception Condition
ArgumentOutOfRangeException

value set is less or equal to than zero.

Remarks

If the value specified is greater than 2147483647 bytes, the value is set to 2147483647 bytes.

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.