Collection.IList.Add(Object) 方法

定義

將項目新增至集合。Adds an item to the collection.

 virtual int IListAdd(System::Object ^ value) = System::Collections::IList::Add;
int IList.Add (object value);
Function IListAdd (value As Object) As Integer Implements IList.Add

參數

value
Object

要新增至集合中的項目。The item to add to the collection.

傳回

插入新項目的位置,或是 -1,表示此項目沒有插入集合中。The position into which the new element was inserted, or -1 to indicate that the item was not inserted into the collection.

適用於