MemoryCache::GetEnumerator Method ()
Creates an enumerator that can be used to iterate through a collection of cache entries.
Assembly: System.Runtime.Caching (in System.Runtime.Caching.dll)
The enumerator that is returned by themethod can be used to iterate over entries in the cache.
Retrieving an enumerator for a MemoryCache instance is a resource-intensive and blocking operation. Therefore, the enumerator should not be used in production applications.
Available since 4.0