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

定義

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

 virtual bool System.Collections.Generic.ICollection<TKey>.Remove(TKey item) = System::Collections::Generic::ICollection<TKey>::Remove;
bool ICollection<TKey>.Remove(TKey item);
abstract member System.Collections.Generic.ICollection<TKey>.Remove : 'Key -> bool
override this.System.Collections.Generic.ICollection<TKey>.Remove : 'Key -> bool
Function Remove (item As TKey) As Boolean Implements ICollection(Of TKey).Remove

パラメーター

item
TKey

コレクションから削除するオブジェクト。

返品

true itemがコレクションから正常に削除された場合は |。それ以外の場合はfalse。 このメソッドは、元のコレクションにitemが見つからない場合にもfalseを返します。

実装

例外

いずれの場合も。

注釈

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

適用対象