StateManagedCollection.OnClearComplete 方法

定義

在衍生類別中覆寫時,在 Clear() 方法完成移除集合的所有項目之後,執行額外工作。When overridden in a derived class, performs additional work after the Clear() method finishes removing all items from the collection.

protected:
 virtual void OnClearComplete();
protected virtual void OnClearComplete ();
abstract member OnClearComplete : unit -> unit
override this.OnClearComplete : unit -> unit
Protected Overridable Sub OnClearComplete ()

備註

從集合中 StateManagedCollection 移除所有專案之後,衍生自的集合可以覆寫 OnClearComplete 方法,以執行任何額外的工作 ClearCollections derived from StateManagedCollection can override the OnClearComplete method to perform any additional work after all items are removed from the collection using the Clear method.

適用於

另請參閱