Share via


ThreadSafeCollection.CopyTo Method (T[], Int32)

Copies the entire ThreadSafeCollection<T> to a compatible one-dimensional array, starting at the beginning of the target array.

Syntax

public void CopyTo (
         T[] array,
         int arrayIndex
)

Parameters

  • array
    Type: T
    The one-dimensional System.Array that is the destination of the elements /// copied from ThreadSafeCollection<T>. The System.Array must have /// zero-based indexing.
  • arrayIndex
    Type: Int32
    The zero-based index in array at which copying begins.

This method raises the following exceptions:

Exception Raised By
System.ArgumentNullException Array is null.
System.ArgumentOutOfRangeException ArrayIndex is less than 0.
System.ArgumentException The number of elements in the source ThreadSafeCollection<T> is greater than the available space from arrayIndex to the end of the destination array.

Requirements

Namespace: Microsoft.Kinect.Toolkit

Assembly: Microsoft.Kinect.Toolkit (in microsoft.kinect.toolkit.dll)

See Also

Reference

ThreadSafeCollection Generic Class
ThreadSafeCollection Members
Microsoft.Kinect.Toolkit Namespace