Export (0) Print
Expand All

SubscriptionDescription.MessageCount Property

Gets the number of messages.

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

public long MessageCount { get; }

Property Value

Type: System.Int64
The number of messages.

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

Community Additions

© 2015 Microsoft