Share via


SortedList<TKey,TValue>.ICollection<KeyValuePair<TKey,TValue>>.Remove Yöntem

Tanım

belirli bir anahtar/değer çiftinin ilk oluşumunu değerinden ICollection<T>kaldırır.

 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

Parametreler

Döndürülenler

trueöğesinden ICollection<T>başarıyla kaldırıldıysa; kaldırılmadıysakeyValuePair, false. Bu yöntem, özgün ICollection<T>içinde bulunamazsa keyValuePair da döndürürfalse.

Uygulamalar

Şunlara uygulanır