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

Definition

Tar bort alla objekt från ICollection<T>. Den här implementeringen genererar alltid en NotSupportedException.

 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

Kastas alltid; samlingen är skrivskyddad.

Kommentarer

Egenskapen Count är inställd på 0 och referenser till andra objekt från element i samlingen släpps också.

Gäller för

Se även