ObjectCache.GetEnumerator Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
When overridden in a derived class, creates an enumerator that can be used to iterate through a collection of cache entries.
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))
Returns
The enumerator object that provides access to the cache entries in the cache.
Implements
Remarks
Cache implementers can override and extend this method to provide a custom means of iterating through a collection of cache entries.
Note
Returning an enumerator is typically a more expensive operation than returning the entire cache entry.
This method is called by the explicit interface implementations that the ObjectCache class has for the GetEnumerator and GetEnumerator methods.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기