語言

ListBox.IntegerCollection.IList.Add(Object) 方法

定義

在收藏中新增一個制表符。

 virtual int System.Collections.IList.Add(System::Object ^ item) = System::Collections::IList::Add;
int IList.Add(object item);
int IList.Add(object? item);
abstract member System.Collections.IList.Add : obj -> int
override this.System.Collections.IList.Add : obj -> int
Function Add (item As Object) As Integer Implements IList.Add

參數

item
Object

用來加 ListBox.IntegerCollection到 .

傳回

整數加入集合的索引。

實作

例外狀況

item 是 null。

item 不是32位元有號整數。

收藏中空間不足以存放新項目。

備註

此成員為明確介面成員實作。 它只能在實 ListBox.IntegerCollection 例投射到 IList 介面時使用。

適用於