DoubleCollection.Clear 方法

定義

從這個 DoubleCollection 中移除所有項目。Removes all the items from this DoubleCollection.

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

實作

例外狀況

DoubleCollection 是唯讀的。The DoubleCollection is read-only.

備註

這個方法不會變更的容量DoubleCollectionThis method does not change the capacity of the DoubleCollection.

適用於

另請參閱