Queue: Count (get)

Count

Gets the number of elements contained in the Queue.



 Public Property Get Count ( ) As Long

Return Values

Long -  The number of elements contained in the Queue.

Remarks

The capacity of a Queue is the number of elements that the Queue can store. Count is the number of elements that are actually in the Queue.

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

The capacity can be decreased by calling TrimToSize.

Read Only.

See Also

Project CorLib Overview

Class Queue Overview