StateManagedCollection.IList.Insert(Int32, Object) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Insère un élément dans la collection à l’index StateManagedCollection 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 de base zéro auquel value doit être inséré.
- value
- Object
Objet à insérer dans le StateManagedCollection.
Implémente
Exceptions
La valeur spécifiée index est hors limites de la collection.
Il StateManagedCollection est en lecture seule.
La valeur spécifiée value est null.
Remarques
S’il index s’agit de -1, value est ajouté au début de la StateManagedCollection collection. Si index la valeur est égale au nombre d’éléments de la collection, value elle est ajoutée à la fin de la collection.