Editar

Compartilhar via


StateManagedCollection.IList.Add(Object) Method

Definition

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

Parameters

value
Object

The object to add to the StateManagedCollection.

Returns

The position at which the new element was inserted.

Implements

Exceptions

The specified value is null.

Remarks

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.

Applies to

See also