Delen via


MSMQManagement.BytesInQueue

 

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 BytesInQueue 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 message bytes in the destination queue or the corresponding outgoing queue.

Data type: Variant
Run-time access: Read-only
Property BytesInQueue As Variant  

Property Value

A Variant containing an unsigned 64-bit integer that specifies (in bytes) the amount of data in the queue.

Remarks

The BytesInQueue 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.

The quota, or the maximum number of bytes that can be stored in the queue, is specified by the MSMQQueueInfo property of the queue.

Equivalent API Function Property

When using API functions, the equivalent property is PROPID_MGMT_QUEUE_BYTES_IN_QUEUE.

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

MSMQManagement
PROPID_MGMT_QUEUE_BYTES_IN_QUEUE