ImmutableSortedDictionary<TKey,TValue>.Builder.Remove ImmutableSortedDictionary<TKey,TValue>.Builder.Remove ImmutableSortedDictionary<TKey,TValue>.Builder.Remove ImmutableSortedDictionary<TKey,TValue>.Builder.Remove Method

定义

重载

Remove(KeyValuePair<TKey,TValue>) Remove(KeyValuePair<TKey,TValue>) Remove(KeyValuePair<TKey,TValue>) Remove(KeyValuePair<TKey,TValue>)

从不可变排序字典中移除特定对象的第一个匹配项。Removes the first occurrence of a specific object from the immutable sorted dictionary.

Remove(TKey) Remove(TKey) Remove(TKey) Remove(TKey)

从不可变排序字典中移除具有指定键的元素。Removes the element with the specified key from the immutable sorted dictionary.

Remove(KeyValuePair<TKey,TValue>) Remove(KeyValuePair<TKey,TValue>) Remove(KeyValuePair<TKey,TValue>) Remove(KeyValuePair<TKey,TValue>)

从不可变排序字典中移除特定对象的第一个匹配项。Removes the first occurrence of a specific object from the immutable sorted dictionary.

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
KeyValuePair<TKey,TValue> KeyValuePair<TKey,TValue> KeyValuePair<TKey,TValue> KeyValuePair<TKey,TValue>

要从字典中移除的对象。The object to remove from the dictionary.

返回

如果从字典中成功移除了 item,则为 true;否则为 falsetrue if item was successfully removed from the dictionary; otherwise, false. 如果在字典中未找到 item,此方法也会返回 falseThis method also returns false if item is not found in the dictionary.

实现

Remove(TKey) Remove(TKey) Remove(TKey) Remove(TKey)

从不可变排序字典中移除具有指定键的元素。Removes the element with the specified key from the immutable sorted dictionary.

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 TKey TKey TKey

要移除的元素的键。The key of the element to remove.

返回

如果该元素已成功移除,则为 true;否则为 falsetrue if the element is successfully removed; otherwise, false. 如果在原始字典中未找到 key,则此方法也会返回 falseThis method also returns false if key was not found in the original dictionary.

实现

适用于