Collection<T>.IList.Add(Object) Méthode

Définition

Ajoute un élément au IList.

 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 IList.

Retours

Position dans laquelle le nouvel élément a été inséré.

Implémente

Exceptions

value est d’un type qui n’est pas assignable au IList.

Remarques

Cette méthode est une opération O(1).

S’applique à