This documentation is archived and is not being maintained.

SortedList.Values Property

Gets the values in the SortedList.

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

Property Value

An ICollection containing the values in the SortedList.




The ICollection is a read-only view of the values of the SortedList. Modifications made to the underlying SortedList are immediately reflected in the ICollection.

The elements of the ICollection are sorted in the same order as the values of the SortedList.

Similar to GetValueList, but returns an ICollection instead of an IList.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

SortedList Class | SortedList Members | System.Collections Namespace | ICollection | Keys | GetValueList | Performing Culture-Insensitive String Operations in Collections