Share via


ReadOnlyDictionary<TKey, TValue>.GetEnumerator method

Returns an enumerator that iterates through the current ReadOnlyDictionary instance

Namespace:  Microsoft.SharePoint.Taxonomy.Generic
Assembly:  Microsoft.SharePoint.Taxonomy (in Microsoft.SharePoint.Taxonomy.dll)

Syntax

'Declaration
<PermissionSetAttribute(SecurityAction.Demand, Name := "FullTrust")> _
Public Function GetEnumerator As IEnumerator(Of KeyValuePair(Of TKey, TValue))
'Usage
Dim instance As ReadOnlyDictionary
Dim returnValue As IEnumerator(Of KeyValuePair(Of TKey, TValue))

returnValue = instance.GetEnumerator()
[PermissionSetAttribute(SecurityAction.Demand, Name = "FullTrust")]
public IEnumerator<KeyValuePair<TKey, TValue>> GetEnumerator()

Return value

Type: System.Collections.Generic.IEnumerator<KeyValuePair<TKey, TValue>>
A IEnumerator object for iterating the ReadOnlyDictionary.

Implements

IEnumerable<T>.GetEnumerator()

See also

Reference

ReadOnlyDictionary<TKey, TValue> class

ReadOnlyDictionary<TKey, TValue> members

Microsoft.SharePoint.Taxonomy.Generic namespace