ConcurrentDictionary<TKey,TValue>.IDictionary<TKey,TValue>.Remove Yöntem

Tanım

öğesinden belirtilen anahtara IDictionary<TKey,TValue>sahip öğesini kaldırır.

 virtual bool System.Collections.Generic.IDictionary<TKey,TValue>.Remove(TKey key) = System::Collections::Generic::IDictionary<TKey, TValue>::Remove;
bool IDictionary<TKey,TValue>.Remove (TKey key);
abstract member System.Collections.Generic.IDictionary<TKey,TValue>.Remove : 'Key -> bool
override this.System.Collections.Generic.IDictionary<TKey,TValue>.Remove : 'Key -> bool
Function Remove (key As TKey) As Boolean Implements IDictionary(Of TKey, TValue).Remove

Parametreler

key
TKey

Kaldırılacak öğenin anahtarı.

Döndürülenler

Boolean

Öğe başarılı şekilde kaldırılırsa true; kaldırılmazsa, false. Bu yöntem, özgün IDictionary<TKey,TValue>içinde bulunamazsa key da döndürürfalse.

Uygulamalar

Özel durumlar

key, null değeridir.

Şunlara uygulanır

Ayrıca bkz.