ObjectCache.GetEnumerator 메서드

정의

파생 클래스에서 재정의되는 경우 캐시 항목 컬렉션을 반복하는 데 사용할 수 있는 열거자를 만듭니다.

protected:
 abstract System::Collections::Generic::IEnumerator<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>> ^ GetEnumerator();
protected abstract System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<string,object>> GetEnumerator();
abstract member GetEnumerator : unit -> System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<string, obj>>
Protected MustOverride Function GetEnumerator () As IEnumerator(Of KeyValuePair(Of String, Object))

반품

캐시의 캐시 항목에 대한 액세스를 제공하는 열거자 개체입니다.

구현

설명

캐시 구현자는 이 메서드를 재정의하고 확장하여 캐시 항목 컬렉션을 반복하는 사용자 지정 수단을 제공할 수 있습니다.

메모

열거자를 반환하는 것은 일반적으로 전체 캐시 항목을 반환하는 것보다 비용이 많이 드는 작업입니다.

이 메서드는 클래스에 대 한 및 GetEnumerator 메서드에 ObjectCache 대 한 명시적 인터페이스 구현에 GetEnumerator 의해 호출 됩니다.

적용 대상