SynchronizedCollection<T>.IList.Item[Int32] Właściwość

Definicja

Pobiera lub ustawia element w określonym indeksie opartym na zerze.

property System::Object ^ System::Collections::IList::Item[int] { System::Object ^ get(int index); void set(int index, System::Object ^ value); };
object System.Collections.IList.Item[int index] { get; set; }
member this.System.Collections.IList.Item(int) : obj with get, set
 Property Item(index As Integer) As Object Implements IList.Item

Parametry

index
Int32

Indeks zerowy elementu do pobrania z kolekcji.

Wartość właściwości

Object

Element o określonym indexelemencie .

Implementuje

Wyjątki

Zestaw wartości jest null lub nie jest poprawnym typem T ogólnym dla kolekcji.

Określona index wartość jest mniejsza niż zero lub większa niż liczba elementów w kolekcji.

Dotyczy