Collection.IList.Add(Object) Metoda

Definicja

Dodaje element do kolekcji.

 virtual int IListAdd(System::Object ^ Item) = System::Collections::IList::Add;
 virtual int IListAdd(System::Object ^ value) = System::Collections::IList::Add;
int IList.Add (object Item);
int IList.Add (object value);
abstract member IListAdd : obj -> int
override this.IListAdd : obj -> int
abstract member IListAdd : obj -> int
override this.IListAdd : obj -> int
Function IListAdd (Item As Object) As Integer Implements IList.Add
Function IListAdd (value As Object) As Integer Implements IList.Add

Parametry

valueItem
Object

Element, który ma zostać dodany do kolekcji.

Zwraca

Położenie, w którym został wstawiony nowy element, lub -1, aby wskazać, że element nie został wstawiony do kolekcji.

Dotyczy