Share via


Setting MSMQQueueInfo.Quota (Windows Embedded CE 6.0)

1/6/2010

The quota of the queue is the maximum size of the queue.

By default, a queue's maximum size is set to INFINITE.

To change the maximum size of a queue

  1. Declare an MSMQQueueInfo object.

  2. Call MSMQQueueInfo.Refresh to retrieve the existing properties of the queue.

  3. Set MSMQQueueInfo.Quota to the new maximum size for the queue.

  4. Call MSMQQueueInfo.Update to change the maximum size of the queue.

See Also

Concepts

Setting Queue Properties (COM)
MSMQ COM Support
Using the COM Components
MSMQ Security

Other Resources

Message Queuing