Managed Collection. On Remove(Int32, Object) Method
protected: virtual void OnRemove(int index, System::Object ^ value);
protected virtual void OnRemove (int index, object value);
abstract member OnRemove : int * obj -> unit override this.OnRemove : int * obj -> unit
Protected Overridable Sub OnRemove (index As Integer, value As Object)
The zero-based index of the item to remove, which is used when IList.RemoveAt(Int32) is called.
Collections derived from StateManagedCollection can override the OnRemove method to perform any additional work before an item is removed from the collection using the IList.Remove or IList.RemoveAt method.