ReadOnlyDictionary<TKey,TValue>.ValueCollection.ICollection<TValue>.Remove メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
すべてのケースで NotSupportedException 例外をスローします。
virtual bool System.Collections.Generic.ICollection<TValue>.Remove(TValue item) = System::Collections::Generic::ICollection<TValue>::Remove;
bool ICollection<TValue>.Remove(TValue item);
abstract member System.Collections.Generic.ICollection<TValue>.Remove : 'Value -> bool
override this.System.Collections.Generic.ICollection<TValue>.Remove : 'Value -> bool
Function Remove (item As TValue) As Boolean Implements ICollection(Of TValue).Remove
パラメーター
- item
- TValue
コレクションから削除するオブジェクト。
返品
true
itemがコレクションから正常に削除された場合は |。それ以外の場合はfalse。 このメソッドは、元のコレクションに項目が見つからない場合にも false を返します。
実装
例外
いずれの場合も。
注釈
このメンバーは、明示的なインターフェイス メンバーの実装です。 ReadOnlyDictionary<TKey,TValue>.ValueCollection インスタンスがICollection<T> インターフェイスにキャストされている場合にのみ使用できます。 ICollection<T> インターフェイスは、インターフェイスを実装するコレクションが読み取り専用の場合、Remove メソッドがNotSupportedException例外をスローすることを指定します。