Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IList.Add Method

When implemented by a class, adds an item to the IList.

[Visual Basic]
Function Add( _
   ByVal value As Object _
) As Integer
[C#]
int Add(
   object value
);
[C++]
int Add(
   Object* value
);
[JScript]
function Add(
   value : Object
) : int;

Parameters

value
The Object to add to the IList.

Return Value

The position into which the new element was inserted.

Exceptions

Exception Type Condition
NotSupportedException The IList is read-only.

-or-

The IList has a fixed size.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

IList Interface | IList Members | System.Collections Namespace

Show:
© 2015 Microsoft