Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Queue Methods

The Queue type exposes the following members.

  NameDescription
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 and returns the object at the beginning of the Queue.
Public method Enqueue Adds an object to the end of the Queue.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetEnumerator Returns an enumerator that iterates through the Queue.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Peek Returns the object at the beginning of the Queue without removing it.
Public method Static member Synchronized Returns a Queue wrapper that is synchronized (thread safe).
Public method ToArray Copies the Queue elements to a new array.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method TrimToSize Sets the capacity to the actual number of elements in the Queue.
Top

  NameDescription
Public Extension Method AsParallel Enables parallelization of a query. (Defined by ParallelEnumerable.)
Public Extension Method AsQueryable Converts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension Method Cast<TResult> Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension Method OfType<TResult> Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)
Top

Community Additions

ADD
Show:
© 2015 Microsoft