StateManagedCollection.OnInsertComplete(Int32, Object) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在派生类中重写时,在或IList.Insert(Int32, Object)方法向集合中添加项后IList.Add(Object)执行其他工作。
protected:
virtual void OnInsertComplete(int index, System::Object ^ value);
protected virtual void OnInsertComplete(int index, object value);
abstract member OnInsertComplete : int * obj -> unit
override this.OnInsertComplete : int * obj -> unit
Protected Overridable Sub OnInsertComplete (index As Integer, value As Object)
参数
- index
- Int32
方法插入的从零开始 value 的 IList.Insert(Int32, Object) 索引。
- value
- Object
插入到 . 中的 StateManagedCollection对象
注解
派生自 StateManagedCollection 的集合可以重写 OnInsertComplete 该方法,以在使用 IList.Add 或 IList.Insert 方法将项添加到集合后执行任何其他工作。