SALES: 1-800-867-1380

QueueDescription.MessageCount Property

Gets the number of messages in the queue.

Namespace:  Microsoft.ServiceBus.Messaging
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)

Public ReadOnly Property MessageCount As Long 
Dim instance As QueueDescription 
Dim value As Long 

value = instance.MessageCount

Property Value

Type: System.Int64
The number of messages.

If there are no receive operations on a queue, the MessageCount property may include messages for which TimeToLive has expired. When a receive operation is called on the queue, the expired messages will not be delivered and the MessageCount property will be updated appropriately.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft