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.

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show: