This documentation is archived and is not being maintained.

Hashtable.Values Property

Gets an ICollection containing the values in the Hashtable.

[Visual Basic]
Public Overridable ReadOnly Property Values As ICollection  _
   Implements IDictionary.Values
[C#]
public virtual ICollection Values {get;}
[C++]
public: __property virtual ICollection* get_Values();
[JScript]
public function get Values() : ICollection;

Property Value

An ICollection containing the values in the Hashtable.

Implements

IDictionary.Values

Remarks

The order of the values in the ICollection is unspecified, but it is the same order as the associated keys in the ICollection returned by the Keys method.

The returned ICollection is not a static copy; instead, the ICollection refers back to the values in the original Hashtable. Therefore, changes to the Hashtable continue to be reflected in the ICollection.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

Hashtable Class | Hashtable Members | System.Collections Namespace | ICollection | Keys

Show: