SortedDictionary<TKey,TValue>.ValueCollection.ICollection<TValue>.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<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

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