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

Definicja

Zgłasza NotSupportedException wyjątek we wszystkich przypadkach.

 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

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>.KeyCollection wystąpienie jest rzutowe do interfejsu ICollection<T> . Interfejs ICollection<T> określa, że Clear metoda powinna zgłosić NotSupportedException wyjątek, jeśli kolekcja implementujący interfejs jest tylko do odczytu.

Dotyczy