StateManagedCollection.IList.Add(Object) Метод
Определение
Добавляет элемент в коллекцию StateManagedCollection.Adds an item to the StateManagedCollection collection.
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
Параметры
- value
- Object
Объект object
, добавляемый в список StateManagedCollection.The object
to add to the StateManagedCollection.
Возвращаемое значение
Позиция, в которой был вставлен новый элемент.The position at which the new element was inserted.
Реализации
Исключения
Заданный объект value
имеет значение null
.The specified value
is null
.
Комментарии
OnValidateМетоды и OnInsert вызываются перед добавлением элемента в коллекцию, а OnInsertComplete метод вызывается после добавления элемента.The OnValidate and OnInsert methods are called before the element is added to the collection, and the OnInsertComplete method is called after the element is added.