Array.IList.Insert(Int32, Object) Método

Definición

Inserta un elemento en el IList en el índice especificado.

 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

Parámetros

index
Int32

Índice en el que value se debe insertar.

value
Object

Objeto que se va a insertar.

Implementaciones

Excepciones

indexno es un índice válido en .IList

es IList de solo lectura.

O bien

IList tiene un tamaño fijo.

valuees una referencia nula en .IList

Comentarios

Este miembro es una implementación explícita de miembro de interfaz. Solo se puede usar cuando la Array instancia se convierte en una IList interfaz.

Se aplica a