Share via


Add Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Adds an item to the IList.

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

Syntax

'Declaration
Function Add ( _
    value As Object _
) As Integer
int Add(
    Object value
)
int Add(
    Object^ value
)
abstract Add : 
        value:Object -> int 
function Add(
    value : Object
) : int

Parameters

Return Value

Type: System. . :: . .Int32
The position into which the new element was inserted, or -1 to indicate that the item was not inserted into the collection,

.NET Framework Security

See Also

Reference

IList Interface

System.Collections Namespace