ConcurrentQueue(T) Methods

Task Parallel System.Threading

The ConcurrentQueue<(Of <(T>)>) type exposes the following members.

Methods

  NameDescription
CopyTo
Copies the ConcurrentQueue<(Of <(T>)>) elements to an existing one-dimensional Array, starting at the specified array index.
Enqueue
Adds an object to the end of the ConcurrentQueue<(Of <(T>)>).
Equals (Inherited from Object.)
Finalize (Inherited from Object.)
GetEnumerator
Returns an enumerator that iterates through the ConcurrentQueue<(Of <(T>)>).
GetHashCode (Inherited from Object.)
GetType (Inherited from Object.)
MemberwiseClone (Inherited from Object.)
ToArray
Copies the elements stored in the ConcurrentQueue<(Of <(T>)>) to a new array.
ToString (Inherited from Object.)
TryDequeue
Attempts to remove and return the object at the beginning of the ConcurrentQueue<(Of <(T>)>).
TryPeek
Attempts to return an object from the beginning of the ConcurrentQueue<(Of <(T>)>) without removing it.

Explicit Interface Implementations

  NameDescription
ICollection..::.CopyTo
Copies the elements of the ICollection to an Array, starting at a particular Array index.
IEnumerable..::.GetEnumerator
Returns an enumerator that iterates through a collection.
IProducerConsumerCollection<(Of <(T>)>)..::.TryAdd
Attempts to add an object to the IProducerConsumerCollection<(Of <(T>)>).
IProducerConsumerCollection<(Of <(T>)>)..::.TryTake
Attempts to remove and return an object from the IProducerConsumerCollection<(Of <(T>)>).

See Also