Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MsmqTransportBindingElement::MaxPoolSize Property

 

Gets or sets an integer that specifies the maximum size of the pool that contains internal Message Queuing (MSMQ) message objects.

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

public:
property int MaxPoolSize {
	int get();
	void set(int value);
}

Property Value

Type: System::Int32

An 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;

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft