Share via


Queue Members

The following tables list the members exposed by the Queue type.

Public Constructors

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

Public Properties

Name Description
Public Property Count Gets the number of elements contained in the Queue.
Public Property IsSynchronized Gets a value indicating whether access to the ArrayList collection is synchronized.
Public Property SyncRoot Gets an object that can be used to synchronize access to the Queue.

Public Methods

Name Description
Public Method Clear Removes all objects from the Queue.
Public Method Clone Creates a shallow copy of the Queue.
Public Method Contains Determines whether an element is in the Queue.
Public Method CopyTo Copies the Queue elements to an existing one-dimensional Array starting at the specified array index.
Public Method Dequeue Removes the object at the beginning of the Queue, and returns it.
Public Method Enqueue Adds an object to the end of the Queue.
Public Method Equals (Inherited from Object.)
Public Method GetEnumerator Returns an enumerator that iterates through the Queue.
Public Method GetHashCode (Inherited from Object.)
Public Method GetType (Inherited from Object.)
Public Method Peek Returns the object at the beginning of the Queue without removing it.
Public Method ReferenceEquals (Inherited from Object.)
Public Method ToArray Copies the Queue elements to a new array.
Public Method ToString (Inherited from Object.)

Protected Methods

Name Description
Protected Method Finalize (Inherited from Object.)
Protected Method MemberwiseClone (Inherited from Object.)

See Also

Reference

Queue Class
System.Collections Namespace