Queue: Count (get) |
Gets the number of elements contained in the Queue.
Public Property Get Count ( ) As Long
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.