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

定義

ディクショナリからキーと値を削除します。

 virtual bool System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Remove(System::Collections::Generic::KeyValuePair<TKey, TValue> keyValuePair) = System::Collections::Generic::ICollection<System::Collections::Generic::KeyValuePair<TKey, TValue>>::Remove;
bool ICollection<KeyValuePair<TKey,TValue>>.Remove (System.Collections.Generic.KeyValuePair<TKey,TValue> keyValuePair);
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 (keyValuePair As KeyValuePair(Of TKey, TValue)) As Boolean Implements ICollection(Of KeyValuePair(Of TKey, TValue)).Remove

パラメーター

keyValuePair
KeyValuePair<TKey,TValue>

Dictionary<TKey,TValue> から削除するキーと値を表す KeyValuePair<TKey,TValue> 構造体。

戻り値

Boolean

keyValuePair で表されたキーと値が見つかり、正常に削除された場合は true。それ以外の場合は false。 このメソッドは、keyValuePairICollection<T> に見つからない場合、false を返します。

実装

適用対象