SynchronizedCollection<T>.Item Property (Int32)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com 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; }

Parameters

index
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
ArgumentOutOfRangeException

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
Show: