SynchronizedCollection<T>.Item[Int32] Propriété
Définition
Obtient un élément de la collection thread-safe avec un index spécifié.Gets an element from the thread-safe collection with a specified index.
public:
property T default[int] { T get(int index); void set(int index, T value); };
public T this[int index] { get; set; }
member this.Item(int) : 'T with get, set
Default Public Property Item(index As Integer) As T
Paramètres
- index
- Int32
Index de base zéro de l’élément à récupérer de la collection.The zero-based index of the element to be retrieved from the collection.
Valeur de propriété
- T
Objet de la collection qui possède l’élément index
spécifié.The object in the collection that has the specified index
.
Implémente
Exceptions
L'index
spécifié est inférieur à zéro ou supérieur au nombre d'éléments contenus dans la collection.The index
specified is less than zero or greater than the number of items in the collection.