BindingSource.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 liste à l'index spécifié.
public:
virtual void Insert(int index, System::Object ^ value);
public virtual void Insert (int index, object value);
public virtual void Insert (int index, object? value);
abstract member Insert : int * obj -> unit
override this.Insert : int * obj -> unit
Public Overridable Sub Insert (index As Integer, value As Object)
Paramètres
- index
- Int32
Index de base zéro au niveau duquel value
doit être inséré.
Implémente
Exceptions
index
est inférieur à 0 ou supérieur à Count.
La liste est en lecture seule ou a une taille fixe.
Remarques
Cette méthode déclenche l’événement ListChanged .
S’applique à
Voir aussi
Commentaires
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Envoyer et afficher des commentaires pour