MemoryCache.IEnumerable.GetEnumerator 方法

定義

提供在泛型集合上執行反覆項目的支援。Provides support for iteration over a generic collection.

 virtual System::Collections::IEnumerator ^ System.Collections.IEnumerable.GetEnumerator() = System::Collections::IEnumerable::GetEnumerator;
System.Collections.IEnumerator IEnumerable.GetEnumerator ();
Function GetEnumerator () As IEnumerator Implements IEnumerable.GetEnumerator

傳回

列舉程式物件,可用來存取快取區的項目。The enumerator object that provides access to the entries in the cache.

實作

備註

這個成員是明確的介面成員實作。This member is an explicit interface member implementation. 只有在 MemoryCache 實例轉換成 IEnumerable 介面時,才可以使用它。It can be used only when a MemoryCache instance is cast to an IEnumerable interface.

您可以使用這個方法來逐一查看快取專案的泛型集合。You can use this method to iterate through a generic collection of cache entries.

適用於