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

Definicja

Usuwa wszystkie elementy z elementu ICollection<T>. Ta implementacja zawsze zgłasza błąd 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

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ż