Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All


(Introduced in MSMQ 3.0). The MessageCount property of the MSMQManagement object, which represents the elements of the state of a queue that are common to destination and outgoing queues, returns the number of messages in the destination queue or outgoing queue.

Data type:


Run-time access:


Property MessageCount As Long

Property Value

A Long integer specifying the number of messages in the queue.


The MessageCount property can refer to an active destination or outgoing queue, depending on the parameters passed to the MSMQManagement.Init method when the MSMQManagement object is initialized.

Equivalent API Function Property

When using API functions, the equivalent property is PROPID_MGMT_QUEUE_MESSAGE_COUNT.


Windows NT/2000/XP: Included in Windows XP and Windows Server 2003.

Windows 95/98/Me: Unsupported.

Header: Declared in Mqoai.h.

Library: Use Mqoa.lib

See Also

© 2015 Microsoft