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

Definice

Odebere všechny položky z objektu ICollection<T>. Tato implementace vždy vyvolá 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

Výjimky

Vždy hozen; kolekce je jen pro čtení.

Poznámky

Vlastnost Count je nastavena na 0 a odkazy na jiné objekty z prvků kolekce jsou také uvolněny.

Platí pro

Viz také