SynchronizedCollection<T>.Item Property (Int32)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets an element from the thread-safe collection with a specified index.

Namespace:   System.Collections.Generic
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public T this[
	int index
] { get; set; }


Type: System.Int32

The zero-based index of the element to be retrieved from the collection.

Property Value

Type: T

The object in the collection that has the specified index.

Exception Condition

The index specified is less than zero or greater than the number of items in the collection.

.NET Framework
Available since 3.0
Return to top