ICollection<T>.Clear メソッド
定義
ICollection<T> からすべての項目を削除します。Removes all items from the ICollection<T>.
public:
void Clear();
public void Clear ();
abstract member Clear : unit -> unit
Public Sub Clear ()
例外
ICollection<T> は読み取り専用です。The ICollection<T> is read-only.
注釈
Count 0に設定する必要があります。また、コレクションの要素から他のオブジェクトへの参照を解放する必要があります。Count must be set to 0, and references to other objects from elements of the collection must be released.