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,才能使用它。