Click to Rate and Give Feedback
MSDN
MSDN Library
Online Services
Windows Azure
API References
CloudQueue Class
 ApproximateMessageCount Property
Collapse All/Expand All Collapse All
CloudQueue.ApproximateMessageCount Property
Gets the approximate message count for the queue.

Namespace: Microsoft.WindowsAzure.StorageClient
Assembly: Microsoft.WindowsAzure.StorageClient (in Microsoft.WindowsAzure.StorageClient.dll)
Visual Basic
Dim instance As CloudQueue
Dim value As Nullable(Of Integer)

value = instance.ApproximateMessageCount
Visual Basic
Public Property ApproximateMessageCount As Nullable(Of Integer)
C#
public Nullable<int> ApproximateMessageCount { get; }
C++
public:
property Nullable<int> ApproximateMessageCount {
    Nullable<int> get ();
}
J#
/** @property */
/** @attribute CompilerGeneratedAttribute() */ 
public Nullable<int> get_ApproximateMessageCount ()
JScript
CompilerGeneratedAttribute 
public function get ApproximateMessageCount () : Nullable<int>

Property Value

Type: System.Nullable

The approximate message count.

C#

    

To specify the lifespan of the approximate message count cache, set the ApproximateMessageCountCacheLength property. Messages that have been accessed with the GetMessage or GetMessages methods are included in this count unless they are deleted by using the DeleteMessage method.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows Vista, Windows 7 and Windows Server 2008

Target Platforms

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Thank you for your feedback      David Murray - MSFT   |   Edit   |   Show History
Thank you for your feedback. The topic has been updated and a new version will be published soon.
Tags What's this?: Add a tag
Flag as ContentBug
Hidden messages are counted      MikeVWood   |   Edit   |   Show History
Note that this count does include messages that have been pulled from the queue using GetMessage or GetMessages, but that have not been deleted from the queue.
Tags What's this?: Add a tag
Flag as ContentBug
Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker