MsmqTransportBindingElement::MaxPoolSize Property
Gets or sets an integer that specifies the maximum size of the pool that contains internal Message Queuing (MSMQ) message objects.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Property Value
Type: System::Int32An integer that specifies the maximum size of the pool that contains internal Message Queuing message objects.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The value is less than zero. |
The internal Message Queuing message object pool is used to avoid allocations of these objects when sending and receiving messages. The maximum pool size is a performance-tuning parameter. The default value is 8.
MsmqTransportBindingElement transportBindingElement = new MsmqTransportBindingElement();
transportBindingElement.MaxPoolSize = 5;
Available since 3.0