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 的定位停駐點。

傳回

在集合中加入整數的位置索引。

實作

例外狀況

itemnull

item 不是 32 位元帶正負號的整數。

空間不夠,無法在集合中存放新項目。

備註

這個成員是明確介面成員實作, 只有在 ListBox.IntegerCollection 執行個體轉換成 IList 介面時,才能使用這個成員。

適用於