Collection<T>.IList.Add Method

May 11, 2014

Adds an item to the IList.

Namespace:  System.Collections.ObjectModel
Assembly:  mscorlib (in mscorlib.dll)

int IList.Add(
	Object value
)

Parameters

value
Type: System.Object
The Object to add to the IList.

Return Value

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

Implements

IList.Add(Object)

ExceptionCondition
ArgumentException

value is of a type that is not assignable to the IList.

This method is an O(1) operation.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft