MSMQManagement.MessageCount

 

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

(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:Long
Run-time access:Read-only
Property MessageCount As Long  

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

MSMQManagement
PROPID_MGMT_QUEUE_MESSAGE_COUNT

Show: