MessageBufferPolicy.MaxMessageCount Property
Gets or sets the maximum message count.
Namespace: Microsoft.ServiceBus
Assembly: Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)
The maximum message count refers to how many messages can be in the buffer at any given time. The maximum number of messages that the message buffer can hold is 50 messages. You can set this property from a value of 1 to 50. Once the message count cap is passed, the message buffer implements the overflow policy, as defined in OverflowPolicy For more information on setting message buffer policy, see How to: Configure an AppFabric Service Bus Message Buffer.