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

定義

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

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

実装

例外

すべての場合。

注釈

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

適用対象