Array.IList.Insert(Int32, Object) Metoda

Definicja

Wstawia element do IList określonego indeksu.

 virtual void System.Collections.IList.Insert(int index, System::Object ^ value) = System::Collections::IList::Insert;
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, w którym value należy wstawić.

value
Object

Obiekt do wstawienia.

Implementuje

Wyjątki

index nie jest prawidłowym indeksem w obiekcie IList.

Element IList jest tylko do odczytu.

-lub-

Element IList ma stały rozmiar.

value jest odwołaniem o wartości null w elemencie IList.

Uwagi

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

Dotyczy