StateManagedCollection.IList.Insert(Int32, Object) Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
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.
É StateManagedCollection só de leitura.
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.