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

Definition

Genererar ett NotSupportedException undantag i alla fall.

 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

Implementeringar

Undantag

I samtliga fall.

Kommentarer

Den här medlemmen är en explicit implementering av gränssnittsmedlemmar. Den kan endast användas när instansen ReadOnlyDictionary<TKey,TValue>.KeyCollection skickas till ett ICollection<T> gränssnitt. Gränssnittet ICollection<T> anger att Clear metoden ska utlösa ett NotSupportedException undantag om samlingen som implementerar gränssnittet är skrivskyddad.

Gäller för