Dictionary<TKey,TValue>.KeyCollection.ICollection<TKey>.Clear Metoda

Definicja

Usuwa wszystkie elementy z elementu ICollection<T>. Ta implementacja zawsze zgłasza błąd NotSupportedException.

 virtual void System.Collections.Generic.ICollection<TKey>.Clear() = System::Collections::Generic::ICollection<TKey>::Clear;
void ICollection<TKey>.Clear ();
abstract member System.Collections.Generic.ICollection<TKey>.Clear : unit -> unit
override this.System.Collections.Generic.ICollection<TKey>.Clear : unit -> unit
Sub Clear () Implements ICollection(Of TKey).Clear

Implementuje

Wyjątki

Zawsze generowany.

Uwagi

Count jest ustawiona na zero, a odwołania do innych obiektów z elementów kolekcji są również zwalniane.

Dotyczy

Zobacz też