SortedList.GetValueList Method ()

 

Gets the values in a SortedList object.

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

abstract GetValueList : unit -> IList
override GetValueList : unit -> IList

Return Value

Type: System.Collections.IList

An IList object containing the values in the SortedList object.

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

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

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

This method is an O(1) operation.

The following code example shows how to get one or all the keys or values in a SortedList object.

No code example is currently available or this language may not be supported.

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