PropertyValueCollection.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 une valeur de propriété dans cette collection à un index spécifié.
public:
void Insert(int index, System::Object ^ value);
public void Insert(int index, object? value);
public void Insert(int index, object value);
member this.Insert : int * obj -> unit
Public Sub Insert (index As Integer, value As Object)
Paramètres
- index
- Int32
Index de base zéro auquel insérer la valeur de propriété.
- value
- Object
Valeur de propriété à insérer.
Exceptions
La valeur de propriété est une référence Null (Nothing dans Visual Basic).
Une erreur s’est produite pendant l’appel à l’interface sous-jacente.
L’index est inférieur à 0 (zéro) ou supérieur à la taille de la collection.