StateManagedCollection.OnRemoveComplete(Int32, Object) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在衍生類別中覆寫時,在 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.Remove 或 IList.RemoveAt 方法從集合中移除專案之後執行任何其他工作。
適用於
另請參閱
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應