StateManagedCollection.IList.Insert(Int32, Object) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将项插入集合中的 StateManagedCollection 指定索引处。
virtual void System.Collections.IList.Insert(int index, System::Object ^ value) = System::Collections::IList::Insert;
void IList.Insert(int index, object value);
abstract member System.Collections.IList.Insert : int * obj -> unit
override this.System.Collections.IList.Insert : int * obj -> unit
Sub Insert (index As Integer, value As Object) Implements IList.Insert
参数
- index
- Int32
应插入的从零开始 value 的索引。
- value
- Object
要插入到 . 中的 StateManagedCollection对象。
实现
例外
指定的 index 集合范围不足。
指定的 value 是 null。
注解
如果 index 为 -1, value 则追加到集合的 StateManagedCollection 开头。 如果 index 等于集合中的项数, value 则追加到集合末尾。