ConcurrentDictionary<TKey,TValue>.IDictionary<TKey,TValue>.Remove メソッド

定義

指定したキーを持つ要素を IDictionary<TKey,TValue> から削除します。

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

パラメーター

key
TKey

削除する要素のキー。

戻り値

要素が正常に削除された場合は true。それ以外の場合は false。 このメソッドは、元の falsekey が見つからなかった場合にも IDictionary<TKey,TValue> を返します。

実装

例外

keynullです。

適用対象

こちらもご覧ください