StateManagedCollection.IList.Add(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.
Ajoute un élément à la StateManagedCollection collection.
virtual int System.Collections.IList.Add(System::Object ^ value) = System::Collections::IList::Add;
int IList.Add(object value);
abstract member System.Collections.IList.Add : obj -> int
override this.System.Collections.IList.Add : obj -> int
Function Add (value As Object) As Integer Implements IList.Add
Paramètres
- value
- Object
À object ajouter au StateManagedCollection.
Retours
Position à laquelle le nouvel élément a été inséré.
Implémente
Exceptions
La valeur spécifiée value est null.
Remarques
Les OnValidate méthodes et OnInsert les méthodes sont appelées avant l’ajout de l’élément à la collection, et la OnInsertComplete méthode est appelée après l’ajout de l’élément.