Język

StateManagedCollection.IList.Add(Object) Metoda

Definicja

Dodaje element do kolekcji StateManagedCollection .

 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

Parametry

value
Object

Element object do dodania do elementu StateManagedCollection.

Zwraca

Położenie, w którym został wstawiony nowy element.

Implementuje

Wyjątki

Określona wartość value to null.

Uwagi

Metody OnValidate i OnInsert są wywoływane przed dodaniu elementu do kolekcji, a OnInsertComplete metoda jest wywoływana po dodaniu elementu.

Dotyczy

Zobacz też