Udostępnij za pośrednictwem


ObjectCache.GetEnumerator Method

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

The latest Enterprise Library information can be found at the Enterprise Library site.

When overridden in a derived class, creates an enumerator that can be used to iterate through a collection of cache entries.

Namespace: Microsoft.Practices.EnterpriseLibrary.Caching.Runtime.Caching
Assembly: Microsoft.Practices.EnterpriseLibrary.Caching.Silverlight (in Microsoft.Practices.EnterpriseLibrary.Caching.Silverlight.dll) Version: 5.0.505.0

Syntax

protected abstract IEnumerator<KeyValuePair<string, Object>> GetEnumerator()
'Declaration
Protected MustOverride Function GetEnumerator As IEnumerator(Of KeyValuePair(Of String, Object))
protected:
virtual IEnumerator<KeyValuePair<String^, Object^>>^ GetEnumerator() abstract

Return Value

The enumerator object that provides access to the cache entries in the cache.

See Also

ObjectCache Class

Microsoft.Practices.EnterpriseLibrary.Caching.Runtime.Caching Namespace