StateManagedCollection.OnInsertComplete(Int32, Object) 方法

定義

在衍生類別中覆寫時,在 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

IList.Insert(Int32, Object) 方法插入 value 處之以零為起始的索引。

value
Object

插入 StateManagedCollection 的物件。

備註

衍生自 StateManagedCollection 的集合可以覆寫 方法, OnInsertComplete 以在使用 IList.AddIList.Insert 方法將專案新增至集合之後執行任何其他工作。

適用於

另請參閱