Delen via


MSMQCollection.Count

 

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 Count property of the MSMQCollection object returns the number of elements in the collection.

Data type: Long
Run-time access: Read-only
Property Count As Long  

Property Value

A Long containing the number of elements in the collection.

Error Codes

For information on return codes, see Message Queuing Error and Information Codes.

Requirements

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

MSMQCollection