To set the properties of a queue or message, the corresponding elements of the aPropID array and the aPropVar array must be set. Element i of the arrays must contain the property's identifier and value, respectively.
When setting properties for queues or messages, if a property is set to the same value more than once, MSMQ uses the first entry in the aPropVar array and discards all the subsequent entries. In the aStatus array, an information error value of MQ_INFORMATION_DUPLICATE_PROPERTY is returned to each discarded entry.
Note Unlike queue and message properties, you cannot set Queue Manager properties; they are properties of the Queue Manager machine. The MSMQ API can only retrieve Queue Manager properties (see MQGetMachineProperties).
For information on… | See… |
---|---|
Setting the properties of a queue | Setting Queue Properties |
Setting the properties of a message | Setting Message Properties |