SALES: 1-800-867-1380

NetTcpRelayBindingBase.MaxBufferSize Property

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

Namespace:  Microsoft.ServiceBus
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)

public int MaxBufferSize { get; set; }

Property Value

Type: System.Int32
Returns the maximum size, in bytes, of the buffer used to store messages in memory. The default value is 65,536.

MaxBufferSize, MaxBufferPoolSize, ReaderQuotas, and MaxReceivedMessageSize are often used together to assist with memory management and provide a potential defense against Denial-of-Service (DoS) attacks. In this context, these members are very similar to their WCF counterparts. For more information, see Security Considerations for Data in the WCF documentation.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft