PriorityQueueTCopyTo Method

Copies the PriorityQueueT elements to an existing one-dimensional Array, starting at the specified array index.

Definition

Namespace: Gemstone.Threading.Collections
Assembly: Gemstone.Threading (in Gemstone.Threading.dll) Version: 1.0.136 -- Release Build+f4971d0e5608ef6953fefd1c1979019c608038f6
public void CopyTo(
	T[] array,
	int index
)

Parameters

array  T
The one-dimensional Array that is the destination of the elements copied from the PriorityQueueT. The Array must have zero-based indexing.
index  Int32
The zero-based index in array at which copying begins.

Implements

IProducerConsumerCollectionTCopyTo(T, Int32)

Exceptions

ArgumentNullExceptionarray is a null reference (Nothing in Visual Basic).
ArgumentOutOfRangeExceptionindex is less than zero.
ArgumentException index is equal to or greater than the length of the array -or- The number of elements in the source PriorityQueueT is greater than the available space from index to the end of the destination array.

See Also