SortedList: Count (get)

Count

Gets the number of elements contained in a SortedList object.



 Public Property Get Count ( ) As Long

Return Values

Long -  The number of elements in the SortedList object.

Remarks

Capacity is the number of elements that the SortedList object can store. Count is the number of elements that are actually in the SortedList.

Capacity is always greater than or equal to Count. If Count exceeds Capacity while adding elements, the capacity is automatically increased by reallocating the internal array before copying the old elements and adding the new elements.

Read Only.

See Also

Project CorLib Overview

Class SortedList Overview

Capacity