SortedList.Values Property

 

Gets the values in a SortedList object.

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

Public Overridable ReadOnly Property Values As ICollection

Property Value

Type: System.Collections.ICollection

An ICollection object containing the values in the SortedList object.

The ICollection object is a read-only view of the values of the SortedList object. 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.

This property is similar to the GetValueList method, but returns an ICollection object instead of an IList object.

This method is an O(1) operation.

Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Return to top
Show: