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> 移除的物件。

傳回

如果 true 已成功從 item 中移除,則為 ICollection<T>,否則為 false。 如果在原本的 false 中找不到 item,則這個方法也會傳回 ICollection<T>

實作

適用於