ListSortDescriptionCollection.IList.Insert(Int32, Object) Metoda

Definice

Vloží položku do kolekce v zadaném indexu.

 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

Index založený na nule, který ListSortDescription chcete získat nebo nastavit v kolekci.

value
Object

Položka, kterou chcete vložit do kolekce.

Implementuje

Výjimky

Ve všech případech.

Poznámky

ListSortDescriptionCollection Protože třída implementuje System.Collections.IList rozhraní, musí mít metoduIList.Insert. Protože ListSortDescriptionCollection však třída představuje kolekci jen pro čtení, vložení položek do kolekce je neplatná operace.

Platí pro