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

Definition

Genererar ett NotSupportedException undantag i alla fall.

 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

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>.ValueCollection 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