Collection.IList.Clear 方法

定義

將所有項目從 Collection 物件中移除。

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

例外狀況

備註

這個方法會移除 Collection 物件中的所有專案。

適用於

另請參閱