Export (0) Print
Expand All

IDictionaryEnumerator.Value Property

Gets the value of the current dictionary entry.

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

Object Value { get; }
/** @property */
Object get_Value ()

function get Value () : Object

Not applicable.

Property Value

The value of the current element of the enumeration.

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 Value property; otherwise, Value is undefined.

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

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

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