GetEnumerator Method

ResourceDictionary.GetEnumerator Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Exposes the enumerator, which supports a simple iteration over a non-generic collection.

Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)

'Declaration
Public Function GetEnumerator As IDictionaryEnumerator

Return Value

Type: System.Collections.IDictionaryEnumerator
An enumerator that can be used to iterate through the collection.

Implements

IDictionary.GetEnumerator

In the case of ResourceDictionary, the full implementation of collection support does use a generic collection type (specifically, it implements Dictionary(Of TKey, TValue) with key-value pairs). The enumerator provides these as DictionaryEntry values. Alternatively, you can enumerate over Keys or Values.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft