StateManagedCollection.OnRemoveComplete(Int32, Object) 方法

定義

在衍生類別中覆寫時,在 IList.Remove(Object)IList.RemoveAt(Int32) 方法從集合中移除指定的項目之後,執行額外工作。When overridden in a derived class, performs additional work after the IList.Remove(Object) or IList.RemoveAt(Int32) method removes the specified item from the collection.

protected:
 virtual void OnRemoveComplete(int index, System::Object ^ value);
protected virtual void OnRemoveComplete (int index, object value);
abstract member OnRemoveComplete : int * obj -> unit
override this.OnRemoveComplete : int * obj -> unit
Protected Overridable Sub OnRemoveComplete (index As Integer, value As Object)

參數

index
Int32

要移除之項目的以零為起始的索引,在呼叫 IList.RemoveAt(Int32) 時會使用這個索引。The zero-based index of the item to remove, which is used when IList.RemoveAt(Int32) is called.

value
Object

StateManagedCollection 移除的物件,在呼叫 IList.Remove(Object) 時會使用這個物件。The object removed from the StateManagedCollection, which is used when IList.Remove(Object) is called.

備註

從集合中移除專案之後,衍生自的集合 StateManagedCollection 可以覆寫 OnRemoveComplete 方法,以執行任何額外的工作 IList.Remove IList.RemoveAtCollections derived from StateManagedCollection can override the OnRemoveComplete method to perform any additional work after an item is removed from the collection using the IList.Remove or IList.RemoveAt method.

適用於

另請參閱