MatchCollection.IList.Clear メソッド

定義

コレクションからすべての項目を削除します。

 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

実装

例外

コレクションは読み取り専用です。

注釈

このメンバーは、明示的なインターフェイス メンバーの実装です。 これは、MatchCollection のインスタンスが IList インターフェイスにキャストされる場合のみ、使用できます。

このメソッドの実装は、 と コレクションの容量の処理方法 ICollection.Count によって異なる場合があります。 通常、カウントは 0 に設定され、コレクションの要素から他のオブジェクトへの参照も解放されます。 容量は、0 または既定値に設定することも、変更せずに保持することもできます。

適用対象