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

Definição

Insere um item na IList 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 no qual o value deve ser inserido.

value
Object

O objeto a ser inserido.

Implementações

Exceções

index não é um índice válido no IList.

O IList é somente leitura.

- ou -

O IList tem um tamanho fixo.

value é uma referência nula no IList.

Comentários

Este membro é uma implementação do membro de interface explícita. Ele só pode ser usado quando a instância de Array é convertida em uma interface de IList.

Aplica-se a