Collection.IList.Add(Object) Method

Definition

Adds an item to the collection.

C#
int IList.Add (object Item);
C#
int IList.Add (object value);

Parameters

valueItem
Object

The item to add to the collection.

Returns

The position into which the new element was inserted, or -1 to indicate that the item was not inserted into the collection.

Applies to