KeyedByTypeCollection<TItem>.InsertItem(Int32, TItem) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将元素插入集合中的特定位置。
protected:
override void InsertItem(int index, TItem item);
protected override void InsertItem(int index, TItem item);
override this.InsertItem : int * 'Item -> unit
Protected Overrides Sub InsertItem (index As Integer, item As TItem)
参数
- index
- Int32
应插入的从零开始 item 的索引。
- item
- TItem
要插入到集合中的对象。
例外
item 是 null。