Cache::GetEnumerator Method ()
.NET Framework (current version)
Retrieves a dictionary enumerator used to iterate through the key settings and their values contained in the cache.
Assembly: System.Web (in System.Web.dll)
Items can be added to or removed from the cache while this method is enumerating through the items.
The following example creates an IDictionaryEnumerator object, CacheEnum, using the GetEnumerator method. The enumerator moves through the cache, converts the value of each cached item to a string, and then writes the values to a Web Forms page.
.NET Framework
Available since 1.1
Available since 1.1
Show: