ConcurrentQueue<T>.ToArray Method ()

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Copies the elements stored in the ConcurrentQueue<T> to a new array.

Namespace:   System.Collections.Concurrent
Assembly:  mscorlib (in mscorlib.dll)

public T[] ToArray()

Return Value

Type: T[]

A new array containing a snapshot of elements copied from the ConcurrentQueue<T>.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Return to top
Show: