Click or drag to resize
IListAdd Method
Adds an item to the IList.

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

Parameters

value
Type: SystemObject
The object to add to the IList.

Return Value

Type: Int32
The position into which the new element was inserted, or -1 to indicate that the item was not inserted into the collection,
Exceptions
ExceptionCondition
NotSupportedExceptionThe IList is read-only.-or- The IList has a fixed size.
See Also