Share via


Dictionary<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 vyvolána.

Poznámky

Count je nastavená na nulu a uvolní se také odkazy na jiné objekty z prvků kolekce.

Platí pro

Viz také