Retrieves a dictionary enumerator used to iterate
through the key settings and their values
contained in the cache.
Namespace: Alachisoft.NCache.Web.CachingAssembly: Alachisoft.NCache.Web (in Alachisoft.NCache.Web.dll) Version: 4.1.0.0 (4.1.0.0)
Syntax
C# |
---|
public virtual IEnumerator GetEnumerator() |
Visual Basic |
---|
Public Overridable Function GetEnumerator As IEnumerator |
Visual C++ |
---|
public: virtual IEnumerator^ GetEnumerator() |
Return Value
An enumerator to iterate through the Cache object.Implements
IEnumerable..::..GetEnumerator()()()()Remarks
If items are added or removed from the cache while enumerating through the items
the behavior is not predictable. It is therefore advised not to update the cache keys
while enumerating.
Note: Just like Count in a cluster especially partitioned this operation is an expensive one and may require network calls. It is therefore advised to use this method only when required.
Note: If exceptions are enabled through the ExceptionsEnabled setting, this property throws exception incase of failure.