SortedDictionary<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 zgłaszane; kolekcja jest tylko do odczytu.

Uwagi

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

Dotyczy

Zobacz też