ObjectCache.IEnumerable.GetEnumerator 方法
定义
支持对泛型集合进行迭代。Supports iteration over a generic collection.
virtual System::Collections::IEnumerator ^ System.Collections.IEnumerable.GetEnumerator() = System::Collections::IEnumerable::GetEnumerator;
System.Collections.IEnumerator IEnumerable.GetEnumerator ();
abstract member System.Collections.IEnumerable.GetEnumerator : unit -> System.Collections.IEnumerator
override this.System.Collections.IEnumerable.GetEnumerator : unit -> System.Collections.IEnumerator
Function GetEnumerator () As IEnumerator Implements IEnumerable.GetEnumerator
返回
可提供对缓存中的项的访问的枚举器对象。The enumerator object that provides access to the items in the cache.
实现
注解
此成员是显式接口成员的实现。This member is an explicit interface member implementation. 它只能在派生 ObjectCache 实例被强制转换为接口时使用 IEnumerable 。It can be used only when a derived ObjectCache instance is cast to an IEnumerable interface.
开发人员可以使用此方法循环访问缓存项的泛型集合。Developers can use this method to iterate through a generic collection of cache entries.
这是 GetEnumerator 内部调用方法的默认实现 GetEnumerator 。This is the default GetEnumerator implementation that internally calls the GetEnumerator method.