NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Queue Constructor (Int32, Single)

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
);

Parameters

capacity
The initial number of elements that the Queue can contain.
growFactor
The factor by which the Queue 's capacity is expanded.

Exceptions

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.

Remarks

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.

See Also

Queue Class | Queue Members | System.Collections Namespace | Queue Constructor Overload List