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

Definición

Inserta un elemento en la StateManagedCollection colección 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 de base cero en el que value se debe insertar.

value
Object

Objeto que se va a insertar en .StateManagedCollection

Implementaciones

Excepciones

El especificado index está fuera del intervalo de la colección.

El especificado value es null.

Comentarios

Si index es -1, value se anexa al principio de la StateManagedCollection colección. Si index es igual al número de elementos de la colección, value se anexa al final de la colección.

Se aplica a

Consulte también