ListBox.IntegerCollection.IList.Add(Object) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在收藏中新增一個制表符。
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 介面時使用。