Changing Queue Behavior Examples
Updated: July 19, 2016
Applies To: Windows 10, Windows 7, Windows 8, Windows 8.1, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Server Technical Preview, Windows Vista
Applications can change the behavior of a destination queue by changing the properties of the queue (queue properties can also be changed by the Message Queuing Administrator.) When the value of a queue property is changed for an existing destination queue, the new value will affect only those messages sent after the queue property is changed. Changing a queue property has no effect on messages already in the queue.
The following examples show how to retrieve and set the properties of the queue.
Some queue properties can be set only when the queue is created (such as the transactional property of the queue), and some queue properties (such as the queue identifier), are read-only properties that can be set only by Message Queuing.