ListBox.IntegerCollection.IList.Add(Object) Metoda

Definicja

Dodaje zatrzymanie karty do kolekcji.

 virtual int System.Collections.IList.Add(System::Object ^ item) = System::Collections::IList::Add;
int IList.Add (object item);
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

Parametry

item
Object

Karta zatrzymuje się, aby dodać element do elementu ListBox.IntegerCollection.

Zwraca

Indeks, w którym liczba całkowita została dodana do kolekcji.

Implementuje

Wyjątki

item to null.

item nie jest 32-bitową liczbą całkowitą ze znakiem.

Za mało miejsca do przechowywania nowego elementu w kolekcji.

Uwagi

Ten element jest jawną implementacją członków. Można go używać tylko wtedy, gdy ListBox.IntegerCollection wystąpienie jest rzutowe do interfejsu IList .

Dotyczy