Share via


ThreadSafeCollection.CopyTo Method (T[])

Copies the entire ThreadSafeCollection<Tgt; to a compatible one-dimensional /// array, starting at the beginning of the target array.

Syntax

public void CopyTo (
         T[] array
)

Parameters

  • array
    Type: T
    The one-dimensional System.Array that is the destination of the elements copied from System.Collections.Generic.List<T>;. The System.Array must have zero-based indexing.

This method raises the following exceptions:

Exception Raised By
System.ArgumentNullException Array is null.
System.ArgumentException The number of elements in the source ThreadSafeCollection<T> is greater than the number of elements that the destination array can contain.

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