Gets the DictionaryEntry.Key of the DictionaryEntry in the collection over which the current instance is positioned.
A object that contains the DictionaryEntry.Key of the DictionaryEntry in the collection over which the current instance is positioned.
Type Reason InvalidOperationException The IDictionaryEnumerator is positioned before the first element of the dictionary or after the last element.
-or-
The dictionary was modified after the IDictionaryEnumerator was instantiated.
This property is read-only.
Operation
It is required that reading IDictionaryEnumerator.Key leave the position of the enumerator unchanged: consecutive calls to this property are required to return the same object until IEnumerator.MoveNext or IEnumerator.Reset is called.
Namespace: System.Collections
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0