Cache.GetEnumerator Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Retrieves a dictionary enumerator used to iterate through the key settings and their values contained in the cache.

Namespace:   System.Web.Caching
Assembly:  System.Web (in System.Web.dll)

member GetEnumerator : unit -> IDictionaryEnumerator

Return Value

Type: System.Collections.IDictionaryEnumerator

An enumerator to iterate through the Cache object.

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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: