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

Definice

Odebere všechny položky z objektu ICollection<T>. Tato implementace vždy vyvolá NotSupportedException.

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

Implementuje

Výjimky

Vždy vyvolána.

Poznámky

Count je nastaven na nulu a odkazy na jiné objekty z prvků kolekce jsou také vydány.

Platí pro

Viz také