StateManagedCollection.IList.Add(Object) Método

Definición

Agrega un elemento a la StateManagedCollection colección.

 virtual int System.Collections.IList.Add(System::Object ^ value) = System::Collections::IList::Add;
int IList.Add(object value);
abstract member System.Collections.IList.Add : obj -> int
override this.System.Collections.IList.Add : obj -> int
Function Add (value As Object) As Integer Implements IList.Add

Parámetros

value
Object

que object se va a agregar a .StateManagedCollection

Devoluciones

Posición en la que se insertó el nuevo elemento.

Implementaciones

Excepciones

El especificado value es null.

Comentarios

Se llama a los OnValidate métodos y OnInsert antes de agregar el elemento a la colección y se llama al OnInsertComplete método después de agregar el elemento.

Se aplica a

Consulte también