ListSortDescriptionCollection.IList.Insert(Int32, Object) Metoda

Definicja

Wstawia element do kolekcji w określonym indeksie.

 virtual void System.Collections.IList.Insert(int index, System::Object ^ value) = System::Collections::IList::Insert;
void IList.Insert (int index, object value);
void IList.Insert (int index, object? value);
abstract member System.Collections.IList.Insert : int * obj -> unit
override this.System.Collections.IList.Insert : int * obj -> unit
Sub Insert (index As Integer, value As Object) Implements IList.Insert

Parametry

index
Int32

Indeks zerowy ListSortDescription klasy , który ma być pobierany lub ustawiany w kolekcji.

value
Object

Element do wstawienia do kolekcji.

Implementuje

Wyjątki

We wszystkich przypadkach.

Uwagi

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

Dotyczy