This documentation is archived and is not being maintained.

Queue Constructor

.NET Framework 1.1

Initializes a new instance of the Queue class.

Overload List

Initializes a new instance of the Queue class that is empty, has the default initial capacity and uses the default growth factor.

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New()
[C#] public Queue();
[C++] public: Queue();
[JScript] public function Queue();

Initializes a new instance of the Queue class that contains elements copied from the specified collection, has the same initial capacity as the number of elements copied and uses the default growth factor.

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New(ICollection)
[C#] public Queue(ICollection);
[C++] public: Queue(ICollection*);
[JScript] public function Queue(ICollection);

Initializes a new instance of the Queue class that is empty, has the specified initial capacity and uses the default growth factor.

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New(Integer)
[C#] public Queue(int);
[C++] public: Queue(int);
[JScript] public function Queue(int);

Initializes a new instance of the Queue class that is empty, has the specified initial capacity and uses the specified growth factor.

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New(Integer, Single)
[C#] public Queue(int, float);
[C++] public: Queue(int, float);
[JScript] public function Queue(int, float);

See Also

Queue Class | Queue Members | System.Collections Namespace

Show: