Retrieving Queue Properties (COM)
A version of this page is also available for
4/8/2010
After a queue is created, the properties of the queue object can be retrieved at any time. However, these properties are only local properties of the registered properties.
For read-write properties such as MSMQQueueInfo.Label, call MSMQQueueInfo.Refresh (to retrieve the registered properties of the queue) if other applications may be changing the properties of the queue.
For read-only properties such as MSMQQueueInfo.FormatName, you must call MSMQQueueInfo.Refresh before the property can be retrieved. When Message Queuing sets a read-only property it sets the registered property, not the local property of the queue object.
Properties of public queues are register in the directory service. Properties of private queues are registered on the local machine. You can refresh the properties of private queues only if the queue is located on your local computer.
When MSMQQueueInfo.Refresh is called, it refreshes all the properties of the queue, not just those set by the application.
Note
You can also retrieve the properties of public queues by doing a query on the directory service.
For examples on | See |
---|---|
Retrieving the authentication level of the queue |
|
Retrieving the priority level of the queue |
|
Retrieving the time the queue was created |
|
Retrieving the format name of the queue |
|
Retrieving the transaction level of the queue |
|
Retrieving the journaling level of the queue |
|
Retrieving the maximum size of the queue journal |
|
Retrieving the label of the queue |
|
Retrieving the time the queue was last modified |
|
Retrieving the pathname of the queue |
|
Retrieving the privacy level of the queue |
|
Retrieving the identifier of the queue |
|
Retrieving the maximum size of the queue |
|
Retrieving the service type of the queue |
See Also
Concepts
MSMQ COM Support
Using the COM Components
MSMQ Security