Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
A version of this page is also available for
4/8/2010
To change the priority level of a queue
The priority level of a queue specifies a single base priority for all messages sent to a public queue.
By default, the priority level of a queue is 0.
-
Declare an MSMQQueueInfoobject.
-
Call MSMQQueueInfo.Refreshto retrieve the existing properties of the queue.
-
Set MSMQQueueInfo.BasePriorityto the new priority level.
-
Call MSMQQueueInfo.Updateto change the priority level of the queue.