List<T>.IList.Add(Object) Metodo
Definizione
virtual int System.Collections.IList.Add(System::Object ^ item) = System::Collections::IList::Add;
int IList.Add (object item);
Function Add (item As Object) As Integer Implements IList.Add
Parametri
Restituisce
Posizione in cui è stato inserito il nuovo elemento.The position into which the new element was inserted.
Implementazioni
Eccezioni
Il tipo di item
non può essere assegnato a IList.item
is of a type that is not assignable to the IList.
Commenti
Se Count è minore di Capacity, questo metodo è un'operazione O (1).If Count is less than Capacity, this method is an O(1) operation. Se la capacità deve essere aumentata per adattarsi al nuovo elemento, questo metodo diventa un'operazione O (n), dove n è Count.If the capacity needs to be increased to accommodate the new element, this method becomes an O(n) operation, where n is Count.