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

Definición

Inserta un elemento en la interfaz 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 debe insertarse value.

value
Object

Objeto que se va a insertar.

Implementaciones

Excepciones

index no es un índice válido para IList.

IList es de solo lectura.

o bien

IList tiene un tamaño fijo.

value es una referencia nula en la IList.

Comentarios

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

Se aplica a