ImmutableDictionary<TKey,TValue>.Builder.Remove メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| 名前 | 説明 |
|---|---|
| Remove(KeyValuePair<TKey,TValue>) |
変更できないディクショナリから特定のオブジェクトの最初の出現箇所を削除します。 |
| Remove(TKey) |
指定したキーを持つ要素を変更できないディクショナリから削除します。 |
Remove(KeyValuePair<TKey,TValue>)
変更できないディクショナリから特定のオブジェクトの最初の出現箇所を削除します。
public:
virtual bool Remove(System::Collections::Generic::KeyValuePair<TKey, TValue> item);
public bool Remove(System.Collections.Generic.KeyValuePair<TKey,TValue> item);
abstract member Remove : System.Collections.Generic.KeyValuePair<'Key, 'Value> -> bool
override this.Remove : System.Collections.Generic.KeyValuePair<'Key, 'Value> -> bool
Public Function Remove (item As KeyValuePair(Of TKey, TValue)) As Boolean
パラメーター
ディクショナリから削除するオブジェクト。
返品
item が見つからない場合にも false を返します。
実装
例外
ディクショナリは読み取り専用です。
適用対象
Remove(TKey)
指定したキーを持つ要素を変更できないディクショナリから削除します。
public:
virtual bool Remove(TKey key);
public bool Remove(TKey key);
abstract member Remove : 'Key -> bool
override this.Remove : 'Key -> bool
Public Function Remove (key As TKey) As Boolean
パラメーター
- key
- TKey
削除する要素のキー。
返品
true 要素が正常に削除された場合。それ以外の場合は false。 このメソッドは、ディクショナリでfalseが見つからなかった場合もkeyを返します。
実装
例外
key が null です。
ディクショナリは読み取り専用です。