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

Definição

Insere um item na StateManagedCollection coleção no í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

O índice baseado em zero no qual value deve ser inserido.

value
Object

O objeto a inserir no StateManagedCollection.

Implementações

Exceções

O especificado index está fora do alcance da coleção.

O especificado value é null.

Observações

Se index for -1, value é acrescentado ao início da StateManagedCollection coleção. Se index for igual ao número de itens na coleção, value é acrescentado ao final da coleção.

Aplica-se a

Ver também