IList::Add Method

Adds an item to the IList.

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

No code example is currently available or this language may not be supported.

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.

ExceptionCondition
NotSupportedException

The IList is read-only.

-or-

The IList has a fixed size.

The following example demonstrates the implementation of the IList interface to create a simple list, fixed-size list. This code is part of a larger example for the IList interface.

No code example is currently available or this language may not be supported.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

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

Community Additions

ADD
Show: