StateManagedCollection.Clear 方法

定義

將所有項目從 StateManagedCollection 集合中移除。Removes all items from the StateManagedCollection collection.

public:
 void Clear();
public void Clear ();
member this.Clear : unit -> unit
Public Sub Clear ()

備註

方法會在 OnClear Clear 呼叫方法之前呼叫,並在完成將專案 OnClearComplete Clear 從集合中移除之後呼叫方法。The OnClear method is called before the Clear method is called, and the OnClearComplete method is called after Clear has finished removing elements from the collection.

適用於

另請參閱