This documentation is archived and is not being maintained.
IList.Add Method
.NET Framework 1.1
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
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: