List<T>.IList.Add(Object) Methode
Definition
virtual int System.Collections.IList.Add(System::Object ^ item) = System::Collections::IList::Add;
int IList.Add (object item);
abstract member System.Collections.IList.Add : obj -> int
override this.System.Collections.IList.Add : obj -> int
Function Add (item As Object) As Integer Implements IList.Add
Parameter
Gibt zurück
Die Position, an der das neue Element eingefügt wurde.The position into which the new element was inserted.
Implementiert
Ausnahmen
item
weist einen Typ auf, der der IList nicht zugeordnet werden kann.item
is of a type that is not assignable to the IList.
Hinweise
Wenn Count kleiner als ist Capacity , ist diese Methode ein O (1)-Vorgang.If Count is less than Capacity, this method is an O(1) operation. Wenn die Kapazität für das neue Element erweitert werden muss, wird diese Methode zu einem O (n)-Vorgang, wobei n gleich ist Count .If the capacity needs to be increased to accommodate the new element, this method becomes an O(n) operation, where n is Count.