Export (0) Print
Expand All

Collection.IList.Add Method

Adds an item to the Collection object. Implements the IList interface.

Namespace:  Microsoft.VisualBasic
Assembly:  Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)

int IList.Add(
	Object value
)

Parameters

value
Type: System.Object

The Object to add to the Collection object.

Return Value

Type: System.Int32
The position into which the new element was inserted.

Implements

IList.Add(Object)

ExceptionCondition
NotSupportedException

The Collection object is read-only.

-or-

The Collection object has a fixed size.

You can also use the Item property to add new elements by setting the value of a key that does not exist in the Collection object.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft