Collection.IList.Item[Int32] Vlastnost

Definice

Získá nebo nastaví prvek v zadaném indexu.

property System::Object ^ System::Collections::IList::Item[int] { System::Object ^ get(int Index); void set(int Index, System::Object ^ value); };
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; }
object System.Collections.IList.Item[int index] { get; set; }
member this.System.Collections.IList.Item(int) : obj with get, set
 Property IListItem(Index As Integer) As Object Implements IList.Item
 Property IListItem(index As Integer) As Object Implements IList.Item

Parametry

indexIndex
Int32

Index založený na nule za účelem získání nebo nastavení prvku.

Hodnota vlastnosti

Prvek v zadaném indexu.

Výjimky

index není platný index v objektu Collection .

Vlastnost je nastavena a Collection objekt je jen pro čtení.

Platí pro