Export (0) Print
Expand All

IDictionaryEnumerator.Entry Property

Gets both the key and the value of the current dictionary entry.

Namespace: System.Collections
Assembly: mscorlib (in mscorlib.dll)

DictionaryEntry Entry { get; }
/** @property */
DictionaryEntry get_Entry ()

function get Entry () : DictionaryEntry

Not applicable.

Property Value

A DictionaryEntry containing both the key and the value of the current dictionary entry.

Exception typeCondition

InvalidOperationException

The IDictionaryEnumerator is positioned before the first entry of the dictionary or after the last entry.

After an enumerator is created or after the Reset method is called, the MoveNext method must be called to advance the enumerator to the first element of the collection before reading the value of the Entry property; otherwise, Entry is undefined.

Entry also throws an exception if the last call to MoveNext returned false, which indicates the end of the collection.

Entry does not move the position of the enumerator, and consecutive calls to Entry return the same object until either MoveNext or Reset is called.

Notes to Implementers: The Current property that is inherited from IEnumerator returns an Object that is a boxed DictionaryEntry, similar to the return value of the Entry property.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 2.0, 1.0

XNA Framework

Supported in: 1.0

Community Additions

ADD
Show:
© 2014 Microsoft