Creates a new Queue with the specified initial capacity and growth factor.
[Visual Basic] Overloads Public Sub New( _ ByVal capacity As Integer, _ ByVal growFactor As Single _ ) [C#] public Queue( int capacity, float growFactor ); [C++] public: Queue( int capacity, float growFactor ); [JScript] public function Queue( capacity : int, growFactor : float );
Exception Type | Condition |
---|---|
ArgumentOutOfRangeException | capacity is less than (or equal to?) zero.
-or- growFactor is less than (or equal to?) 1.0 or greater than 10.0. |
When the number of elements in the Queue reaches its capacity, the capacity is automatically increased. The new capacity is determined by multiplying the current capacity by the growth factor.
The initial capacity is the starting capacity of the new Queue.
Queue Class | Queue Members | System.Collections Namespace | Queue Constructor Overload List