ImmutableDictionary<TKey,TValue>.ICollection<KeyValuePair<TKey,TValue>>.Remove メソッド

定義

特定のオブジェクトが ICollection<T> 内にあるときに、最初に出現したものを削除します。

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

パラメーター

item
KeyValuePair<TKey,TValue>

ICollection<T> から削除するオブジェクト。

戻り値

trueitem から正常に削除された場合は ICollection<T>。それ以外の場合は false。 このメソッドは、false が元の item に見つからない場合にも ICollection<T> を返します。

実装

適用対象