Dictionary<TKey,TValue>.ICollection<KeyValuePair<TKey,TValue>>.Remove(KeyValuePair<TKey,TValue>) Yöntem
Tanım
Sözlükten bir anahtar ve değer kaldırır.Removes a key and value from the dictionary.
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
- keyValuePair
- KeyValuePair<TKey,TValue>
KeyValuePair<TKey,TValue>Öğesinden kaldırılacak anahtarı ve değeri temsil eden yapı Dictionary<TKey,TValue> .The KeyValuePair<TKey,TValue> structure representing the key and value to remove from the Dictionary<TKey,TValue>.
Döndürülenler
true
ile temsil edilen anahtar ve değer keyValuePair
başarıyla bulunursa ve kaldırılırsa; Aksi durumda, false
.true
if the key and value represented by keyValuePair
is successfully found and removed; otherwise, false
. Bu yöntem false
keyValuePair
içinde bulunmazsa ' i döndürür ICollection<T> .This method returns false
if keyValuePair
is not found in the ICollection<T>.