Bewerken

Delen via


MsmqTransportBindingElement.MaxPoolSize Property

Definition

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

public:
 property int MaxPoolSize { int get(); void set(int value); };
public int MaxPoolSize { get; set; }
member this.MaxPoolSize : int with get, set
Public Property MaxPoolSize As Integer

Property Value

An integer that specifies the maximum size of the pool that contains internal Message Queuing message objects.

Exceptions

The value is less than zero.

Examples

MsmqTransportBindingElement transportBindingElement = new MsmqTransportBindingElement();
transportBindingElement.MaxPoolSize = 5;

Remarks

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.

Applies to