ListSortDescriptionCollection.IList.Add(Object) Metoda

Definicja

Dodaje element do kolekcji.

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

Parametry

value
Object

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

Zwraca

Położenie, w którym został wstawiony nowy element.

Implementuje

Wyjątki

We wszystkich przypadkach.

Uwagi

ListSortDescriptionCollection Ponieważ klasa implementuje System.Collections.IList interfejs, musi mieć metodę IList.Add . Jednak ponieważ ListSortDescriptionCollection klasa reprezentuje kolekcję tylko do odczytu, dodanie elementów do kolekcji jest nieprawidłową operacją.

Dotyczy