ReadOnlyDictionary<TKey,TValue>.ValueCollection.ICollection<TValue>.Clear メソッド

定義

常に NotSupportedException 例外をスローします。

 virtual void System.Collections.Generic.ICollection<TValue>.Clear() = System::Collections::Generic::ICollection<TValue>::Clear;
void ICollection<TValue>.Clear ();
abstract member System.Collections.Generic.ICollection<TValue>.Clear : unit -> unit
override this.System.Collections.Generic.ICollection<TValue>.Clear : unit -> unit
Sub Clear () Implements ICollection(Of TValue).Clear

実装

例外

すべての場合。

注釈

このメンバーは、明示的なインターフェイス メンバーの実装です。 これは、ReadOnlyDictionary<TKey,TValue>.ValueCollection のインスタンスが ICollection<T> インターフェイスにキャストされる場合のみ、使用できます。 インターフェイスは ICollection<T> 、インターフェイスを実装するコレクションが Clear 読み取り専用である場合に、メソッドが例外をスロー NotSupportedException することを指定します。

適用対象