CloudQueueClient.ApproximateMessageCountCacheLength Property
From Storage Client Library NET API
Gets or sets the lifetime of the approximate message count cache.
Namespace: Microsoft.WindowsAzure.StorageClient
Assembly: Microsoft.WindowsAzure.StorageClient (in Microsoft.WindowsAzure.StorageClient.dll)
Usage
| Visual Basic |
|---|
Dim instance As CloudQueueClient Dim value As TimeSpan value = instance.ApproximateMessageCountCacheLength instance.ApproximateMessageCountCacheLength = value |
Syntax
| Visual Basic |
|---|
<ObsoleteAttribute("The approximate message count cache is obsolete. Use FetchAttributes to refresh the approximate message count as needed.")> _
Public Property ApproximateMessageCountCacheLength As TimeSpan |
| C# |
|---|
[ObsoleteAttribute("The approximate message count cache is obsolete. Use FetchAttributes to refresh the approximate message count as needed.")]
public TimeSpan ApproximateMessageCountCacheLength { get; set; } |
| C++ |
|---|
[ObsoleteAttribute(L"The approximate message count cache is obsolete. Use FetchAttributes to refresh the approximate message count as needed.")] public: property TimeSpan ApproximateMessageCountCacheLength { TimeSpan get (); void set (TimeSpan value); } |
| J# |
|---|
| JScript |
|---|
Property Value
Type: System.TimeSpan
The lifetime of the approximate message count cache.
Remarks
This method is obsolete. Use FetchAttributes instead.
This value determines how often the cache for the queue's approximate message count is refreshed. By default the lifetime of the cache is TimeSpan.Zero, and the approximate message count value is updated from the service each time the RetrieveApproximateMessageCount method is called.
Setting this value to a non-zero TimeSpan can improve performance if you are checking the approximate message count value frequently.