Click or drag to resize
ArrayListAdd Method
Adds an object to the end of the ArrayList.

Namespace: System.Collections
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public virtual int Add(
	Object value
)

Parameters

value
Type: SystemObject
The Object to be added to the end of the ArrayList. The value can be null.

Return Value

Type: Int32
The ArrayList index at which the value has been added.

Implements

IListAdd(Object)
Exceptions
ExceptionCondition
NotSupportedExceptionThe ArrayList is read-only.-or- The ArrayList has a fixed size.
See Also