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

Definicja

NotSupportedException Zgłasza wyjątek we wszystkich przypadkach.

 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

We wszystkich przypadkach.

Uwagi

Ten element jest jawną implementacją członków. Można go używać tylko wtedy, gdy ReadOnlyDictionary<TKey,TValue>.ValueCollection wystąpienie jest rzutowanie do interfejsu ICollection<T> . Interfejs ICollection<T> określa, że Clear metoda powinna zgłaszać NotSupportedException wyjątek, jeśli kolekcja implementujący interfejs jest tylko do odczytu.

Dotyczy