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

Definice

NotSupportedException Ve všech případech vyvolá výjimku.

 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

Výjimky

Ve všech případech

Poznámky

Tento člen je explicitní implementace členu rozhraní. Lze jej použít pouze v případě, že ReadOnlyDictionary<TKey,TValue>.KeyCollection je instance přetypovaná na ICollection<T> rozhraní. Rozhraní ICollection<T> určuje, že Clear metoda by měla vyvolat NotSupportedException výjimku, pokud kolekce, která implementuje rozhraní, je jen pro čtení.

Platí pro