語言

StateManagedCollection.IList.Clear 方法

定義

移除收藏中的所有物品 StateManagedCollection 。

 virtual void System.Collections.IList.Clear() = System::Collections::IList::Clear;
void IList.Clear();
abstract member System.Collections.IList.Clear : unit -> unit
override this.System.Collections.IList.Clear : unit -> unit
Sub Clear () Implements IList.Clear

實作

備註

OnClear方法在方法被呼叫之前Clear被呼叫,而在移除集合元素後OnClearComplete再呼叫該Clear方法。

適用於

另請參閱