Represents a first-in-first-out collection of objects.
Object
Queue
[Visual Basic] Public Class Queue Implements ICollection, IEnumerable [C#] public class Queue : ICollection, IEnumerable [C++] public __gc class Queue : public ICollection, IEnumerable [JScript] public class Queue implements ICollection, IEnumerable
Objects stored in a Queue are inserted in one end and removed from the other.
Queues are useful for storing messages in the order they were received for sequential processing.
This class implements a queue as a circular array.
When the number of elements in the Queue reaches its capacity, the capacity is automatically increased to accommodate more elements.
Namespace: System.Collections
Assembly: mscorlib.dll