StateManagedCollection.OnInsertComplete(Int32, Object) Método

Definición

Cuando se reemplaza en una clase derivada, realiza un trabajo adicional después de que los métodos IList.Insert(Int32, Object) o IList.Add(Object) agreguen un elemento a la colección.

protected:
 virtual void OnInsertComplete(int index, System::Object ^ value);
protected virtual void OnInsertComplete (int index, object value);
abstract member OnInsertComplete : int * obj -> unit
override this.OnInsertComplete : int * obj -> unit
Protected Overridable Sub OnInsertComplete (index As Integer, value As Object)

Parámetros

index
Int32

Índice de base cero en el que se inserta value mediante el método IList.Insert(Int32, Object).

value
Object

Objeto insertado en StateManagedCollection.

Comentarios

Las colecciones derivadas de StateManagedCollection pueden invalidar el OnInsertComplete método para realizar cualquier trabajo adicional después de agregar un elemento a la colección mediante el IList.Add método o IList.Insert .

Se aplica a

Consulte también