Share via


ThreadSafeCollection.Insert Method

Inserts an element into the ThreadSafeCollection<T> at the specified index.

Syntax

public void Insert (
         int index,
         T item
)

Parameters

  • index
    Type: Int32
    The zero-based index at which item should be inserted.
  • item
    Type: T
    The object to insert. The value can be null for reference types.

This method raises the following exceptions:

Exception Raised By
ArgumentOutOfRangeExceptio Index is less than 0.-or-index is greater than ThreadSafeCollection<T>.Count.

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