Share via


ThreadSafeCollection Members

The following table(s) list the members exposed by the ThreadSafeCollection type.

Public Constructors

Name Description
Public Method ThreadSafeCollection Overloaded. Initializes a new instance of the ThreadSafeCollection class.

Public Properties

Name Description
Public Property Count Gets the number of elements actually contained in the ThreadSafeCollection<T> .
Public Property IsReadOnly Gets a value indicating whether the collection is read only. Returns true.
Public Property Item Gets or sets the element at the specified index.

Public Methods

Name Description
Public Method Add Adds an object to the end of the ThreadSafeCollection<T>
Public Method AddRange Adds the elements of the specified collection to the end of the ThreadSafeCollection<T>.
Public Method Clear Removes all elements from the ThreadSafeCollection<T>.
Public Method Contains Determines whether an element is in the ThreadSafeCollection< T>.
Public Method CopyTo Overloaded. Copies the entire ThreadSafeCollection<T>.
Public Method IndexOf Searches for the specified object and returns the zero-based index of the first occurrence within the entire ThreadSafeCollection<T>.
Public Method Insert Inserts an element into the ThreadSafeCollection<T> at the specified index.
Public Method Remove Removes the first occurrence of a specific object from the ThreadSafeCollection<T> .
Public Method RemoveAt Removes the element at the specified index of the ThreadSafeCollection<T>.

See Also

Reference

ThreadSafeCollection Generic Class
Microsoft.Kinect.Toolkit Namespace