ReadOnlyCollection<T>.IList.Insert(Int32, Object) Metoda

Definicja

Wstawia element do IList określonego indeksu. Ta implementacja zawsze zgłasza błąd NotSupportedException.

 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

Liczony od elementu zerowego indeks, w którym powinien zostać wstawiony parametr value.

value
Object

Element Object , który ma być wstawiony do pliku IList.

Implementuje

Wyjątki

Zawsze generowany.

Uwagi

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

Dotyczy