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

定義

すべてのケースで NotSupportedException 例外をスローします。

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

パラメーター

item
TKey

コレクションに追加するオブジェクト。

実装

例外

いずれの場合も。

注釈

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

適用対象