ObjectCache.IEnumerable.GetEnumerator ObjectCache.IEnumerable.GetEnumerator ObjectCache.IEnumerable.GetEnumerator Method

定义

支持对泛型集合进行迭代。Supports 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 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.

适用于