This topic has not yet been rated - Rate this topic

ConnectionOrientedTransportBindingElement.MaxBufferSize Property

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

Namespace:  Microsoft.ServiceBus.Channels
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)
public int MaxBufferSize { get; set; }

Property Value

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

The value is less than or equal to zero.

For streamed messages this property only applies to the message headers; for buffered messages it applies to the entire message.

The value of this property must be less than or equal to MaxRecievedMessageSize and must be larger than the size of the headers of the message or the channel throws an exception.

If you receive more data than you can buffer the channel throws a CommunicationException, which contains a QuotaExceededException as an inner exception.

Did you find this helpful?
(1500 characters remaining)