CloudQueue.ApproximateMessageCount Property (Microsoft.WindowsAzure.StorageClient)

Switch View :
ScriptFree
CloudQueue.ApproximateMessageCount Property
Gets the approximate message count for the queue.

Namespace: Microsoft.WindowsAzure.StorageClient
Assembly: Microsoft.WindowsAzure.StorageClient (in Microsoft.WindowsAzure.StorageClient)
Usage

Visual Basic
Dim instance As CloudQueue
Dim value As Nullable(Of Integer)

value = instance.ApproximateMessageCount

Syntax

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.
Remarks

To specify the lifespan of the approximate message count cache, set the ApproximateMessageCountCacheLength property.


Thread Safety

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

Development Platforms

Windows Vista, Windows 7 and Windows Server 2008

Target Platforms

See Also

Community Content

David Murray - MSFT
Thank you for your feedback
Thank you for your feedback. The topic has been updated and a new version will be published soon.

MikeVWood
Hidden messages are counted
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.