Dictionary<TKey,TValue>.ValueCollection.ICollection<TValue>.Clear Methode

Definitie

Hiermee verwijdert u alle items uit de ICollection<T>. Deze implementatie gooit NotSupportedExceptionaltijd.

 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

Implementeringen

Uitzonderingen

Altijd gegooid.

Opmerkingen

Count is ingesteld op nul en verwijzingen naar andere objecten uit elementen van de verzameling worden ook vrijgegeven.

Van toepassing op

Zie ook