StateManagedCollection.OnRemoveComplete(Int32, Object) 方法

定義

在衍生類別中覆寫時,在 IList.Remove(Object)IList.RemoveAt(Int32) 方法從集合中移除指定的項目之後,執行額外工作。

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) 時會使用這個索引。

value
Object

StateManagedCollection 移除的物件,在呼叫 IList.Remove(Object) 時會使用這個物件。

備註

衍生自 StateManagedCollection 的集合可以覆寫 方法, OnRemoveComplete 以在使用 IList.RemoveIList.RemoveAt 方法從集合中移除專案之後執行任何其他工作。

適用於

另請參閱