Array.IList.Insert(Int32, Object) Méthode

Définition

Insère un élément dans l’index IList spécifié.

 virtual void System.Collections.IList.Insert(int index, System::Object ^ value) = System::Collections::IList::Insert;
void IList.Insert(int index, object value);
abstract member System.Collections.IList.Insert : int * obj -> unit
override this.System.Collections.IList.Insert : int * obj -> unit
Sub Insert (index As Integer, value As Object) Implements IList.Insert

Paramètres

index
Int32

Index auquel value doit être inséré.

value
Object

Objet à insérer.

Implémente

Exceptions

index n’est pas un index valide dans le IList.

Il IList est en lecture seule.

- ou -

La IList taille est fixe.

value est une référence null dans le IList.

Remarques

Ce membre est une implémentation explicite de membre d’interface. Elle ne peut être utilisée que lorsque l’instance Array est convertie en IList interface.

S’applique à