Collection.IList.Item[Int32] Propriété

Définition

Obtient ou définit l’élément à l’index spécifié.

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

Paramètres

Indexindex
Int32

Index de base zéro de l’élément à obtenir ou définir.

Valeur de propriété

Élément à l’index spécifié.

Exceptions

index n’est pas un index valide dans l’objet Collection .

La propriété est définie et l’objet Collection est en lecture seule.

S’applique à