Partager via


Retrieving Queue Properties (COM) (Windows Embedded CE 6.0)

1/6/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 MSMQQueueInfo.Authenticate

Retrieving the priority level of the queue

Retrieving MSMQQueueInfo.BasePriority

Retrieving the time the queue was created

Retrieving MSMQQueueInfo.CreateTime

Retrieving the format name of the queue

Retrieving MSMQQueueInfo.FormatName

Retrieving the transaction level of the queue

Retrieving MSMQQueueInfo.IsTransactional

Retrieving the journaling level of the queue

MSMQQueueInfo.Journal

Retrieving the maximum size of the queue journal

Retrieving MSMQQueueInfo.JournalQuota

Retrieving the label of the queue

Retrieving MSMQQueueInfo.Label

Retrieving the time the queue was last modified

Retrieving MSMQQueueInfo.ModifyTime

Retrieving the pathname of the queue

Retrieving MSMQQueueInfo.PathName

Retrieving the privacy level of the queue

Retrieving MSMQQueueInfo.PrivLevel

Retrieving the identifier of the queue

Retrieving MSMQQueueInfo.QueueGuid

Retrieving the maximum size of the queue

Retrieving MSMQQueueInfo.Quota

Retrieving the service type of the queue

Retrieving MSMQQueueInfo.ServiceTypeGuid

See Also

Concepts

Using the COM Components
MSMQ COM Support
MSMQ Security

Other Resources

Message Queuing