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

Структура KeyValuePair<TKey,TValue>, удаляемая из коллекции ICollection<T>.

Возвращаемое значение

Значение true, если объект keyValuePair успешно удален из ICollection<T>; в противном случае — значение false. Этот метод также возвращает false, если элемент keyValuePair не найден в коллекции ICollection<T>.

Реализации

Применяется к